[IMP] improved
bzr revid: bde@tinyerp.com-20140212101245-bhp1ncpuvckvex4m
This commit is contained in:
parent
6dca8bf3fb
commit
e2410358cd
|
@ -56,9 +56,9 @@ class res_currency(osv.osv):
|
|||
if cr.rowcount:
|
||||
res[id] = cr.fetchone()[0]
|
||||
elif not raise_on_no_rate:
|
||||
res[currency.id] = 0
|
||||
res[id] = 0
|
||||
else:
|
||||
raise osv.except_osv(_('Error!'),_("No currency rate associated for currency '%s' for the given period" % (currency.name)))
|
||||
raise osv.except_osv(_('Error!'),_("No currency rate associated for currency '%d' for the given period" % (id)))
|
||||
return res
|
||||
|
||||
_name = "res.currency"
|
||||
|
|
Loading…
Reference in New Issue