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
Dũng (Trần Đình)
parent
e15898dda6
commit
4fcd6366af
@@ -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