Duplicate a product with attributes


Is there an easy way to duplicate/copy a product so that it’s variants/attributes are copied over to the new product as well?


I think this is only possible with a small code change.
Usually One2Many Fields are not copied. For this you have to redefine the fields product_variant_ids and/or attribute_line_ids and add the copy=True parameter.
For further informations please check the accepted answer here: https://www.odoo.com/forum/help-1/question/copy-function-not-copy-one2many-relation-field-128362