From d251041c05706d7749bae38942a18dbab9edde79 Mon Sep 17 00:00:00 2001 From: "Suganthi, Sodexis" Date: Thu, 3 Dec 2015 16:33:00 +0530 Subject: [PATCH] [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 efee12a1bb7139ddf8fb67dc3f97be447aa77aa3, solving the below issue: https://bugs.launchpad.net/openobject-addons/+bug/921877 opw-659931 closes #10026 --- addons/account_anglo_saxon/invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account_anglo_saxon/invoice.py b/addons/account_anglo_saxon/invoice.py index 69256a6b016..a330210b456 100644 --- a/addons/account_anglo_saxon/invoice.py +++ b/addons/account_anglo_saxon/invoice.py @@ -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, }, ]