Ir al contenido
Menú
Se marcó esta pregunta
1340 Vistas

I would like to automatically create the product variants by adding the "value.ids" directly. But the variants are not created automatically as if I were doing it by hand. What's the right way to do this? 


Thanks a lot :)


example of my code :

models.execute_kw(db, uid, password, 'product.attribute.line', 'write', [product_template_line, { 'value_ids': [(6,0,all_values_of_attribute_array)] }])


Avatar
Descartar