feat: Update module version to Odoo 19, correct context access from _context to env.context, and add a .gitignore file.

This commit is contained in:
Suherdy Yacob 2026-01-21 11:01:21 +07:00
parent 85ade7855b
commit 970aa8553f
3 changed files with 234 additions and 219 deletions

15
.gitignore vendored Normal file
View File

@ -0,0 +1,15 @@
# Python
*.py[cod]
__pycache__/
*.so
# Odoo
*.po~
*.pot~
# Editor / System
.DS_Store
.vscode/
*.swp
*.swo
*~

View File

@ -1,6 +1,6 @@
{ {
'name': 'Vendor Payment with Misc Journals', 'name': 'Vendor Payment with Misc Journals',
'version': '17.0.1.0.0', 'version': '19.0.1.0.0',
'category': 'Accounting', 'category': 'Accounting',
'summary': 'Allow using misc journals for vendor bill payments', 'summary': 'Allow using misc journals for vendor bill payments',
'description': """ 'description': """

View File

@ -101,7 +101,7 @@ class AccountPayment(models.Model):
Override to allow general journals for payments Override to allow general journals for payments
""" """
# Remove the check that restricts journals to only bank/cash types # Remove the check that restricts journals to only bank/cash types
if self._context.get('skip_account_move_synchronization'): if self.env.context.get('skip_account_move_synchronization'):
return return
for pay in self.with_context(skip_account_move_synchronization=True): for pay in self.with_context(skip_account_move_synchronization=True):