[FIX] account_voucher: analytic account on writeoff
bzr revid: qdp-launchpad@tinyerp.com-20101229092610-jui1s12crz4zuom2
This commit is contained in:
@@ -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], {
|
||||
|
||||
Reference in New Issue
Block a user