[FIX]account_voucher: fix parameters of _get_current_rate function to match latest server build

bzr revid: csn@openerp.com-20130911100907-p2jbs254j96ibpj4
This commit is contained in:
Cedric Snauwaert
2013-09-11 12:09:07 +02:00
parent cac70450e0
commit e718f612d3
+2 -2
View 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