[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:
Suganthi, Sodexis 2015-12-03 16:33:00 +05:30 committed by Denis Ledoux
parent 7f29a23118
commit d251041c05
1 changed files with 1 additions and 1 deletions

View File

@ -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,
},
]