[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:
parent
7d1a4cb28d
commit
8aaf1f2bdc
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue