diff options
| author | Rucha (Open ERP) <rpa@tinyerp.com> | 2011-06-28 15:25:16 +0530 |
|---|---|---|
| committer | Rucha (Open ERP) <rpa@tinyerp.com> | 2011-06-28 15:25:16 +0530 |
| commit | d5f84bcceffd0708f9d2dc61fdebc802345e0ebb (patch) | |
| tree | 58b79b05a2143e4c6d8d7a36c7b3414de37abf90 /addons/base_setup/installer.py | |
| parent | 111aaad609ade44cac0ee5a0dbd426b825678d7a (diff) | |
[REM]: base_setup: Moved name_get of res.currency at server side
bzr revid: rpa@tinyerp.com-20110628095516-nb986uegxx0w6w5p
Diffstat (limited to 'addons/base_setup/installer.py')
| -rw-r--r-- | addons/base_setup/installer.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/addons/base_setup/installer.py b/addons/base_setup/installer.py index 8473214d20f..56a61eecc3b 100644 --- a/addons/base_setup/installer.py +++ b/addons/base_setup/installer.py @@ -320,22 +320,4 @@ class specify_partner_terminology(osv.osv_memory): specify_partner_terminology() -# this code is needed to be moved in main currency class -class res_currency(osv.osv): - _inherit = 'res.currency' - - def name_get(self, cr, uid, ids, context=None): - if context is None: - 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): - return [] - 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']) + (x['symbol'] and (' (' + tools.ustr(x['symbol']) + ')') or '')) for x in reads] - -res_currency() - # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: |
