[FIX] account_anglo_saxon: analytic account on the expense move line
When using Anglo-Saxon accounting,
the customer invoice has two extra lines:
- One on the output account
- One on the expense account
the move line with the expense account should
have the analytic account set on the invoice line
This is related to the revision efee12a1bb
,
solving the below issue:
https://bugs.launchpad.net/openobject-addons/+bug/921877
opw-659931
closes #10026
This commit is contained in:
parent
7f29a23118
commit
d251041c05
|
@ -121,7 +121,7 @@ class account_invoice_line(osv.osv):
|
|||
'account_id':fiscal_pool.map_account(cr, uid, fpos, cacc),
|
||||
'product_id':i_line.product_id.id,
|
||||
'uos_id':i_line.uos_id.id,
|
||||
'account_analytic_id': False,
|
||||
'account_analytic_id': i_line.account_analytic_id.id,
|
||||
'taxes':i_line.invoice_line_tax_id,
|
||||
},
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue