From d7f12700509fff40a586bc1f4044d6968a80fdee Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Tue, 19 Jul 2016 15:48:49 +0200 Subject: [PATCH] [FIX] product: default name in copy on product.product When duplicating a variant, it's not necessary to append (copy) to the name of the variant as it changes the name of the template too. opw:683522 --- addons/product/product.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/product/product.py b/addons/product/product.py index c2c081630d3..9bd497cc8c8 100644 --- a/addons/product/product.py +++ b/addons/product/product.py @@ -1173,7 +1173,7 @@ class product_product(osv.osv): # if we copy a variant or create one, we keep the same template default['product_tmpl_id'] = product.product_tmpl_id.id elif 'name' not in default: - default['name'] = _("%s (copy)") % (product.name,) + default['name'] = product.name return super(product_product, self).copy(cr, uid, id, default=default, context=context)