Key (product_tmpl_id, combination_indices)=(2051, ) already exists
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- 客户关系管理
- e-Commerce
- 会计
- 库存
- PoS
- Project
- MRP
此问题已终结
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