[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:
parent
2c19e9be96
commit
d7f1270050
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue