From c107f22f4dca359fac482a0d96d1791394fb1e4c Mon Sep 17 00:00:00 2001 From: rch-openerp Date: Fri, 19 Nov 2010 10:36:26 +0530 Subject: [PATCH] [IMP]: Currency symbol. bzr revid: rch@tinyerp.com-20101119050626-jus23yef5j29d9ih --- bin/addons/base/res/res_currency.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/addons/base/res/res_currency.py b/bin/addons/base/res/res_currency.py index d9668118212..30beb8a2219 100644 --- a/bin/addons/base/res/res_currency.py +++ b/bin/addons/base/res/res_currency.py @@ -101,12 +101,12 @@ class res_currency(osv.osv): if from_currency['rate'] == 0 or to_currency['rate'] == 0: date = context.get('date', time.strftime('%Y-%m-%d')) if from_currency['rate'] == 0: - currency_name = from_currency.name + currency_symbol = from_currency.symbol else: - currency_name = to_currency.name + currency_symbol = to_currency.symbol raise osv.except_osv(_('Error'), _('No rate found \n' \ 'for the currency: %s \n' \ - 'at the date: %s') % (currency_name, date)) + 'at the date: %s') % (currency_symbol, date)) rate = to_currency.rate/from_currency.rate if account and (account.currency_mode=='average') and account.currency_id: q = self.pool.get('account.move.line')._query_get(cr, uid, context=context)