[FIX]account_voucher: fix parameters of _get_current_rate function to match latest...
authorCedric Snauwaert <csn@openerp.com>
Wed, 11 Sep 2013 10:09:07 +0000 (12:09 +0200)
committerCedric Snauwaert <csn@openerp.com>
Wed, 11 Sep 2013 10:09:07 +0000 (12:09 +0200)
bzr revid: csn@openerp.com-20130911100907-p2jbs254j96ibpj4

addons/account_voucher/account_voucher.py

index 81eb76f..88b0e7c 100644 (file)
@@ -31,10 +31,10 @@ from openerp.report import report_sxw
 class res_currency(osv.osv):
     _inherit = "res.currency"
 
-    def _get_current_rate(self, cr, uid, ids, name, arg, context=None):
+    def _get_current_rate(self, cr, uid, ids, raise_on_no_rate=True, context=None):
         if context is None:
             context = {}
-        res = super(res_currency, self)._get_current_rate(cr, uid, ids, name, arg, context=context)
+        res = super(res_currency, self)._get_current_rate(cr, uid, ids, raise_on_no_rate, context=context)
         if context.get('voucher_special_currency') in ids and context.get('voucher_special_currency_rate'):
             res[context.get('voucher_special_currency')] = context.get('voucher_special_currency_rate')
         return res