Ir al contenido
Menú
Se marcó esta pregunta

I would like to know if there is a way to convert a product.product element to product.template. The point is that we currently use product variants but we need to convert those product variants to product.template and no longer use variants. It would not matter to delete the attributes of the variants because we could differentiate them by changing only the name of the product.
I understand that in the database when creating a product a row is created in the product.template and product.product tables. But creating variants only creates rows in product.product with the product_tmpl_id pointing to the product.template. If there is a way to convert product.product to product.template either by bulk upload or otherwise, I would greatly appreciate the help.

Avatar
Descartar

I would also like to get rid of product variants as the import process seems to have created a new blank variant for every import I have ever done even though I used template_id to identify each product.

I did find this code on a different post but not sure if it will still work in Odoo10 or Odoo14..

https://www.odoo.com/forum/help-1/how-do-i-move-all-product-variant-attachments-to-product-templates-i-don-t-want-to-use-variants-any-longer-106765

Publicaciones relacionadas Respuestas Vistas Actividad
1
ago 21
4743
2
ago 23
4234
0
oct 21
1761
0
jul 21
3205
1
sept 19
5222