[IMP]: Currency symbol.

bzr revid: rch@tinyerp.com-20101119050626-jus23yef5j29d9ih
This commit is contained in:
rch-openerp 2010-11-19 10:36:26 +05:30
parent b78c68cf89
commit c107f22f4d
1 changed files with 3 additions and 3 deletions

View File

@ -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)