From 0af32f3f84bae07b11abb8538d02e35c7369a348 Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Mon, 23 May 2016 10:30:01 +0200 Subject: [PATCH] Revert "[FIX] res.currency: allow duplication" This reverts commit d780f9476d43eb4fd25c852dd4e691002f4a6dcf. Did not work due to the size=3 on name field that strips the code to the first three letters only (removing the " (copy)" part). Copying a currency has a few business cases as the rates are not copied. As can not increase the size of a field in stable, remove the method that had no effect. Fixes #11036 --- openerp/addons/base/res/res_currency.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/openerp/addons/base/res/res_currency.py b/openerp/addons/base/res/res_currency.py index 23f2ef5ccf5..efc8ac1d5a3 100644 --- a/openerp/addons/base/res/res_currency.py +++ b/openerp/addons/base/res/res_currency.py @@ -135,16 +135,6 @@ class res_currency(osv.osv): reads = self.read(cr, uid, ids, ['name','symbol'], context=context, load='_classic_write') return [(x['id'], tools.ustr(x['name'])) for x in reads] - def copy(self, cr, uid, id, default=None, context=None): - if context is None: - context = {} - if not default: - default = {} - default.update(name=_("%s (copy)") - % (self.browse(cr, uid, id, context=context).name)) - return super(res_currency, self).copy( - cr, uid, id, default=default, context=context) - @api.v8 def round(self, amount): """ Return `amount` rounded according to currency `self`. """