[IMP] useability currencies name_get only return name

bzr revid: fp@tinyerp.com-20121124175433-0fro2ufrs3b9feev
This commit is contained in:
Fabien Pinckaers 2012-11-24 18:54:33 +01:00
parent 70c499a4d8
commit 2a7a50dd3f
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ class res_currency(osv.osv):
if isinstance(ids, (int, long)):
ids = [ids]
reads = self.read(cr, uid, ids, ['name','symbol'], context=context, load='_classic_write')
return [(x['id'], tools.ustr(x['name']) + (x['symbol'] and (' (' + tools.ustr(x['symbol']) + ')') or '')) for x in reads]
return [(x['id'], tools.ustr(x['name'])) for x in reads]
def round(self, cr, uid, currency, amount):
"""Return ``amount`` rounded according to ``currency``'s