mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
copy the transaction_ref to the move lines from the invoice
This commit is contained in:
committed by
Dũng (Trần Đình)
parent
7a454ff651
commit
e15898dda6
@@ -39,3 +39,10 @@ class AccountInvoice(Model):
|
||||
default['transaction_id'] = False
|
||||
return super(AccountInvoice, self).\
|
||||
copy_data(cr, uid, id, default=default, context=context)
|
||||
|
||||
def finalize_invoice_move_lines(self, cr, uid, invoice_browse, move_lines):
|
||||
if invoice_browse.transaction_id:
|
||||
for line in move_lines:
|
||||
# tuple (0, 0, {values})
|
||||
line[2]['transaction_ref'] = invoice_browse.transaction_id
|
||||
return move_lines
|
||||
|
||||
Reference in New Issue
Block a user