mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
the transaction id is copied only on account move lines having the same account than the invoice's one (the payable / receivable)
This commit is contained in:
committed by
Iryna Vyshnevska
parent
11951edebf
commit
2fb34c240d
@@ -42,7 +42,9 @@ class AccountInvoice(Model):
|
||||
|
||||
def finalize_invoice_move_lines(self, cr, uid, invoice_browse, move_lines):
|
||||
if invoice_browse.transaction_id:
|
||||
invoice_account_id = invoice_browse.account_id.id
|
||||
for line in move_lines:
|
||||
# tuple (0, 0, {values})
|
||||
line[2]['transaction_ref'] = invoice_browse.transaction_id
|
||||
if invoice_account_id == line[2]['account_id']:
|
||||
line[2]['transaction_ref'] = invoice_browse.transaction_id
|
||||
return move_lines
|
||||
|
||||
Reference in New Issue
Block a user