I need to create a Blue Color T-shirt using webservice (RPC)
I can create the product,_template(T-shirt), the product_attribute_line (Color) the product_attribute_value (Blue).
But I can't create the Blue-color-TShirt. I can't update the field product_attribute_line.value_ids. I've tried to set it during the creation of a product_attribute_line record or after using a write method. Both didn't work.
What is the correct way to create the product variant using RPC in Odoo v9 ?
i updated the product.attribute.line [in php ripcode[ this way:
$existing_prodid = 59; $existing_attribute_id = 2; $existing_value_id = 4;
$product_attribute_line = $models->execute($db, $uid, $password,
array('product_tmpl_id' => $existing_prodid,
In python [using xmlrpclib ]:
attibute_line = models.execute_kw(dbname, uid, password,
hope this may help you.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 4/22/16, 9:34 AM|
|Seen: 459 times|
|Last updated: 4/22/16, 10:24 AM|