[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
This commit is contained in:
Goffin Simon 2016-07-19 15:48:49 +02:00
parent 2c19e9be96
commit d7f1270050
1 changed files with 1 additions and 1 deletions

View File

@ -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)