From 8aaf1f2bdc2be08cb276b5ba2f89a41a46e92e5e Mon Sep 17 00:00:00 2001 From: "JAM (OpenERP)" <> Date: Thu, 23 Dec 2010 11:04:20 +0530 Subject: [PATCH] [Fix] base_setup: Fix the currency without symbol returns lp bug: https://launchpad.net/bugs/692970 fixed bzr revid: sbh@tinyerp.com-20101223053420-zvc2rdof61tawxa3 --- addons/base_setup/todo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()