[Fix] base_setup: Fix the currency without symbol returns

lp bug: https://launchpad.net/bugs/692970 fixed

bzr revid: sbh@tinyerp.com-20101223053420-zvc2rdof61tawxa3
This commit is contained in:
JAM (OpenERP) 2010-12-23 11:04:20 +05:30 committed by Sbh (OpenERP)
parent 7d1a4cb28d
commit 8aaf1f2bdc
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ class res_currency(osv.osv):
if isinstance(ids, (int, long)):
ids = [ids]
reads = self.read(cr, uid, ids, ['name','symbol'], context, load='_classic_write')
return [(x['id'], tools.ustr(x['name']) + ' (' + tools.ustr(x['symbol']) + ')') for x in reads]
return [(x['id'], tools.ustr(x['name']) + (x['symbol'] and (' (' + tools.ustr(x['symbol']) + ')') or '')) for x in reads]
res_currency()