[FIX] account_voucher: display the payment_rate_currency_id field when needed
authorQuentin (OpenERP) <qdp-launchpad@openerp.com>
Tue, 7 May 2013 12:45:13 +0000 (14:45 +0200)
committerQuentin (OpenERP) <qdp-launchpad@openerp.com>
Tue, 7 May 2013 12:45:13 +0000 (14:45 +0200)
bzr revid: qdp-launchpad@openerp.com-20130507124513-2st24rthgg8dlcv0

addons/account_voucher/account_voucher.py

index 28ed197..6c54437 100644 (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)