Skip to Content
Menu
This question has been flagged

Hi,

I can't create a product.product as I did on previous versions, when I try to do this:

$combination_odoo_data = [
'product_tmpl_id' => 5,
'name' => 'test',
'default_code' => 'test-ref',
'is_product_variant' => true,
'attribute_value_ids' => array(array(6, 0, [17,18])),
'variant_price_extra' => (float)22
];
 
$product_variation_productproduct = $this->models->execute_kw($this->db, $this->uid, $this->password, 'product.product', 'create',
array($combination_odoo_data));




Seem like "variant_price_extra" should be now just "price_extra" and "attribute_value_ids" should be "product_template_attribute_value_ids" but it dos not work.

What changed to achieve the same on this version 13? It is not possible now to create variant like this? If I create a "product.template.attribute.line" I can not assign a barcode to the variant

Avatar
Discard
Related Posts Replies Views Activity
1
Jul 23
1323
0
May 23
1490
3
Apr 23
18785
1
Nov 22
860
1
May 22
4636