Skip to content
Snippets Groups Projects
Commit 700763f2 authored by Richard Mathot's avatar Richard Mathot
Browse files

[MERGE][IMP] More explicit error message in res_currency

bzr revid: rim@openerp.com-20140423074037-igw9je00rcfgfzia
parents 7c02150c 22df13f4
No related branches found
No related tags found
No related merge requests found
......@@ -58,7 +58,8 @@ class res_currency(osv.osv):
elif not raise_on_no_rate:
res[id] = 0
else:
raise osv.except_osv(_('Error!'),_("No currency rate associated for currency %d for the given period" % (id)))
currency = self.browse(cr, uid, id, context=context)
raise osv.except_osv(_('Error!'),_("No currency rate associated for currency '%s' for the given period" % (currency.name)))
return res
_name = "res.currency"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment