[FIX] account_voucher: display the payment_rate_currency_id field when needed

bzr revid: qdp-launchpad@openerp.com-20130507124513-2st24rthgg8dlcv0
This commit is contained in:
Quentin (OpenERP) 2013-05-07 14:45:13 +02:00
parent 82e4bb826a
commit 976b8f6d33
1 changed files with 1 additions and 1 deletions

View File

@ -243,7 +243,7 @@ class account_voucher(osv.osv):
def onchange_line_ids(self, cr, uid, ids, line_dr_ids, line_cr_ids, amount, voucher_currency, type, context=None):
context = context or {}
if not line_dr_ids and not line_cr_ids:
return {'value':{'writeoff_amount': 0.0, 'is_multi_currency': False}}
return {'value':{'writeoff_amount': 0.0}}
line_osv = self.pool.get("account.voucher.line")
line_dr_ids = resolve_o2m_operations(cr, uid, line_osv, line_dr_ids, ['amount'], context)
line_cr_ids = resolve_o2m_operations(cr, uid, line_osv, line_cr_ids, ['amount'], context)