shopinvader / odoo-shopinvader

Odoo Modules. Sorry Magento, Shopinvader is coming
GNU Affero General Public License v3.0
121 stars 104 forks source link

[14.0] duplicate key value violates unique constraint "product_product_combination_unique" #1066

Closed sbidoul closed 3 years ago

sbidoul commented 3 years ago

I get this error when updating the shopinvader module in 14.0:

Error: duplicate key value violates unique constraint "product_product_combination_unique"
DETAIL:  Key (product_tmpl_id, combination_indices)=(29, ) already exists.

There are exotic things going on in https://github.com/shopinvader/odoo-shopinvader/blob/14.0/shopinvader/demo/product_product_demo.xml (WTH it this <function> tag ?) which I don't quite grok.

Does anyone know something about it ? @sebastienbeau may be as you touched that part recently ?

sbidoul commented 3 years ago

Related to https://github.com/shopinvader/odoo-shopinvader/pull/936 ?

sebastienbeau commented 3 years ago

I will look at it tomorrow

sebastienbeau commented 3 years ago

Note the function have been added here : https://github.com/shopinvader/odoo-shopinvader/pull/503/files#diff-a29a2e3914f7f47c2038ccd93e0179e89f6f50d7e0451636f45de655ab42dc35

sebastienbeau commented 3 years ago

can you test my fix : https://github.com/shopinvader/odoo-shopinvader/pull/1067 ?