跳至内容
菜单
此问题已终结
1 回复
60 查看

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

形象
丢弃
最佳答案

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

形象
丢弃