Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
121 Näkymät

Key (product_tmpl_id, combination_indices)=(2051, ) already exists

Avatar
Hylkää
Paras vastaus

Answer:

Hi Carlos Langenscheidt

This Warning arises from a SQL constraint 'product_product_combination_unique' on the product_product table. It occurs when attempting to create a product variant with the same combination of attribute values as an existing variant under the same parent product template (product.template). In other words, you are trying to create a duplicate variant, which is not allowed.

If you still want to bypass it (not recommended), you would need to drop the SQL constraint and override the 'init()' method in the product.product model, which is responsible for raising this warning.

 I hope this helps!

Feel free to reach out if you have any questions — happy to help!

Thanks & Regards,

Email:  odoo@aktivsoftware.com           

Skype: kalpeshmaheshwari

Avatar
Hylkää