From 1a04d7b12870fd4752b664c91d5d2fc5ddefd0e1 Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Thu, 1 Aug 2013 15:12:34 +0200 Subject: [PATCH] [FIX]account_voucher: change signature of _get_current_rate according to res_currency from server bzr revid: dle@openerp.com-20130801131234-p63bhee1aqrs9n8o --- addons/account_voucher/account_voucher.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/account_voucher/account_voucher.py b/addons/account_voucher/account_voucher.py index 0cf9ebb618e..c49730cb990 100644 --- a/addons/account_voucher/account_voucher.py +++ b/addons/account_voucher/account_voucher.py @@ -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