summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorJAM (OpenERP) <>2010-12-23 11:04:20 +0530
committerSbh (OpenERP) <sbh@tinyerp.com>2010-12-23 11:04:20 +0530
commit8aaf1f2bdc2be08cb276b5ba2f89a41a46e92e5e (patch)
tree5050b8097dfb2b425b1096262a078b01f5fac1be /addons
parent7d1a4cb28d6754ec55579c168be612dfe3c6311b (diff)
[Fix] base_setup: Fix the currency without symbol returns
lp bug: https://launchpad.net/bugs/692970 fixed bzr revid: sbh@tinyerp.com-20101223053420-zvc2rdof61tawxa3
Diffstat (limited to 'addons')
-rw-r--r--addons/base_setup/todo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/base_setup/todo.py b/addons/base_setup/todo.py
index c7478801598..f5c8c8d09a6 100644
--- a/addons/base_setup/todo.py
+++ b/addons/base_setup/todo.py
@@ -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()