Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
4151 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 7 25
2663
0
thg 5 23
2360
3
thg 3 25
24139
1
thg 11 22
2302
1
thg 5 22
5791