-
-
Notifications
You must be signed in to change notification settings - Fork 687
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] account_invoice_merge_payment: pre-commit stuff
- Loading branch information
louck
committed
Oct 18, 2024
1 parent
e78bf07
commit 49a178c
Showing
7 changed files
with
136 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
# Copyright 2015-2017 ACSONE SA/NV | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
{ | ||
'name': "Account Invoice Merge Payment", | ||
'summary': """ | ||
"name": "Account Invoice Merge Payment", | ||
"summary": """ | ||
Use invoice merge regarding fields on Account Payment Partner""", | ||
'author': "ACSONE SA/NV,Odoo Community Association (OCA)", | ||
'website': "http://www.acsone.eu", | ||
'category': 'Invoicing & Payments', | ||
'version': '12.0.1.0.0', | ||
'license': 'AGPL-3', | ||
'depends': [ | ||
'account_invoice_merge', | ||
'account_payment_partner', | ||
"author": "ACSONE SA/NV,Odoo Community Association (OCA)", | ||
"website": "https://github.com/OCA/account-invoicing", | ||
"category": "Invoicing & Payments", | ||
"version": "12.0.1.0.0", | ||
"license": "AGPL-3", | ||
"depends": [ | ||
"account_invoice_merge", | ||
"account_payment_partner", | ||
], | ||
'auto_install': True, | ||
'installable': True, | ||
"auto_install": True, | ||
"installable": True, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
# Copyright 2015-2017 ACSONE SA/NV | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
from odoo import models, api | ||
from odoo import api, models | ||
|
||
|
||
class AccountInvoice(models.Model): | ||
|
||
_inherit = 'account.invoice' | ||
_inherit = "account.invoice" | ||
|
||
@api.model | ||
def _get_invoice_key_cols(self): | ||
return super(AccountInvoice, self)._get_invoice_key_cols() + [ | ||
'payment_mode_id', | ||
"payment_mode_id", | ||
] | ||
|
||
@api.model | ||
def _get_first_invoice_fields(self, invoice): | ||
res = super(AccountInvoice, self)._get_first_invoice_fields(invoice) | ||
res.update({'payment_mode_id': invoice.payment_mode_id.id}) | ||
res.update({"payment_mode_id": invoice.payment_mode_id.id}) | ||
return res |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.