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:
parent
85ade7855b
commit
970aa8553f
15
.gitignore
vendored
Normal file
15
.gitignore
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
# Python
|
||||
*.py[cod]
|
||||
__pycache__/
|
||||
*.so
|
||||
|
||||
# Odoo
|
||||
*.po~
|
||||
*.pot~
|
||||
|
||||
# Editor / System
|
||||
.DS_Store
|
||||
.vscode/
|
||||
*.swp
|
||||
*.swo
|
||||
*~
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
'name': 'Vendor Payment with Misc Journals',
|
||||
'version': '17.0.1.0.0',
|
||||
'version': '19.0.1.0.0',
|
||||
'category': 'Accounting',
|
||||
'summary': 'Allow using misc journals for vendor bill payments',
|
||||
'description': """
|
||||
|
||||
@ -101,7 +101,7 @@ class AccountPayment(models.Model):
|
||||
Override to allow general journals for payments
|
||||
"""
|
||||
# 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
|
||||
|
||||
for pay in self.with_context(skip_account_move_synchronization=True):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user