diff options
| author | Quentin (OpenERP) <qdp-launchpad@openerp.com> | 2011-07-04 13:37:58 +0200 |
|---|---|---|
| committer | Quentin (OpenERP) <qdp-launchpad@openerp.com> | 2011-07-04 13:37:58 +0200 |
| commit | d1cf6665947ce97351a36655ddf4e30cfc05bd5f (patch) | |
| tree | 28b51347c4d30cf96a76861bbe1b9ad3ca6ac016 | |
| parent | ff92ce7c8fe971026cf0ad351b9fb4302855b1ba (diff) | |
| parent | d29461fa9a53c2d07d4a9b82cb84d2fc1245f89b (diff) | |
[MERGE] small code imp
bzr revid: qdp-launchpad@openerp.com-20110704113758-qzmb26v09q5gmdlx
| -rw-r--r-- | openerp/addons/base/res/res_currency.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openerp/addons/base/res/res_currency.py b/openerp/addons/base/res/res_currency.py index 9db27e49e2a..d8412374f5f 100644 --- a/openerp/addons/base/res/res_currency.py +++ b/openerp/addons/base/res/res_currency.py @@ -83,11 +83,11 @@ class res_currency(osv.osv): context = {} # We can use the following line,if we want to restrict this name_get for company setup only # But, its better to show currencies as name(Code). - if not len(ids): + if not ids: return [] if isinstance(ids, (int, long)): ids = [ids] - reads = self.read(cr, uid, ids, ['name','symbol'], context, load='_classic_write') + 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] def round(self, cr, uid, currency, amount): |
