[MERGE] lp:893977 (account_voucher: set analytic account when doing a payment)

bzr revid: rco@openerp.com-20111201161254-eu07dnav1xc624p5
This commit is contained in:
Raphael Collet 2011-12-01 17:12:54 +01:00
commit fddcf3ffc8
1 changed files with 1 additions and 0 deletions

View File

@ -958,6 +958,7 @@ class account_voucher(osv.osv):
'debit': diff < 0 and -diff or 0.0,
'amount_currency': company_currency <> current_currency and voucher_brw.writeoff_amount or False,
'currency_id': company_currency <> current_currency and current_currency or False,
'analytic_account_id': voucher_brw.analytic_id and voucher_brw.analytic_id.id or False,
}
return move_line