[FIX] account_voucher: analytic account on writeoff

bzr revid: qdp-launchpad@tinyerp.com-20101229092610-jui1s12crz4zuom2
This commit is contained in:
qdp-launchpad@tinyerp.com
2010-12-29 10:26:10 +01:00
parent aaf45f0829
commit 4da1c7e320
+1 -1
View File
@@ -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], {