Skip to Content
मेन्यू
This question has been flagged
The question has been closed for reason: duplicate post
by Constanze Becker on गुरुवार 06 जून 2024 08:41:52

Hello I have a product, with 5000+ variants, so I used create variant dynamicly.
I use a survey and with the answers I create the variant. 
My code is in an automation action.

This is my code to create the variant:

 used_variant = env['product.product'].create({
            'product_tmpl_id'used_variant.id,'product_uom_qty': 1,'price_unit': used_variant.lst_price,
})

I've got this error:

Der Vorgang kann nicht ausgeführt werden: duplicate key value violates unique constraint "product_product_combination_unique" DETAIL: Key (product_tmpl_id, combination_indices)=(2208, ) already exists.

Can anyone help me please. Thank you.

Avatar
Discard
Related Posts Replies Views Activity
0
जून 24
1150
1
जुल॰ 24
1704
0
जन॰ 25
1016
1
अप्रैल 24
1620
1
मार्च 24
964