跳至內容
選單
此問題已被標幟
1 回覆
59 瀏覽次數

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

頭像
捨棄