From 4da1c7e3209b7d7084e5eab3697168c54f8aafdb Mon Sep 17 00:00:00 2001 From: "qdp-launchpad@tinyerp.com" <> Date: Wed, 29 Dec 2010 10:26:10 +0100 Subject: [PATCH] [FIX] account_voucher: analytic account on writeoff bzr revid: qdp-launchpad@tinyerp.com-20101229092610-jui1s12crz4zuom2 --- addons/account_voucher/account_voucher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account_voucher/account_voucher.py b/addons/account_voucher/account_voucher.py index 4e08ad9112b..11d4585f9d0 100644 --- a/addons/account_voucher/account_voucher.py +++ b/addons/account_voucher/account_voucher.py @@ -777,8 +777,8 @@ class account_voucher(osv.osv): 'debit': diff < 0 and -diff or 0.0, 'amount_currency': company_currency <> current_currency and currency_pool.compute(cr, uid, company_currency, current_currency, diff * -1, context=context_multi_currency) or 0.0, 'currency_id': company_currency <> current_currency and current_currency or False, + 'analytic_account_id': inv.analytic_id.id, } - move_line_pool.create(cr, uid, move_line) self.write(cr, uid, [inv.id], {