summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphael Collet <rco@openerp.com>2011-12-01 17:12:54 +0100
committerRaphael Collet <rco@openerp.com>2011-12-01 17:12:54 +0100
commitfddcf3ffc8f03a5f8c52d290f6faf815074a6fb7 (patch)
tree71899f53ab42d986924ea8d8d9cb913545329f2f
parent4fc148ac735ae1146ef9a10f05a6d146ebffb67b (diff)
parentd24f90eebf84f7e079744756d0adf68cf090a8db (diff)
[MERGE] lp:893977 (account_voucher: set analytic account when doing a payment)
bzr revid: rco@openerp.com-20111201161254-eu07dnav1xc624p5
-rw-r--r--addons/account_voucher/account_voucher.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/account_voucher/account_voucher.py b/addons/account_voucher/account_voucher.py
index fd6dac9f90d..0de84a82ce0 100644
--- a/addons/account_voucher/account_voucher.py
+++ b/addons/account_voucher/account_voucher.py
@@ -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