Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
4139 Ansichten

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
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
1
Juli 25
2663
0
Mai 23
2359
3
März 25
24132
1
Nov. 22
2299
1
Mai 22
5790