Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I'm trying to create a customer and set the tag. This is what I'm doing:
$customer = $this->client->execute_kw($this->db, $this->uid, $this->pass,
'is_company' => 1,
'x_external_id' => $data['id'],
'name' => $data['name'],
'parent_id' => 1, //cf id
'category_id' => , //tags
'street' => $data['line1'],
'city' => $data['town'],
'state_id' => $this->_searchCounty($data['county_name']),
'zip' => $data['postcode'],
'website' => $data['website'],
'phone' => $data['telephone'],
'email' => $data['email'],
'property_account_receivable' => 30,
'property_account_payable' => 41,
'customer' => true,
'supplier' => true,
'active' => true,
'opt_out' => 1,
'notify_email' => 'none'
I would imagine passing an array with correct Id should have been enough, since this is how the tags show up when you read the record. But when the record is created, it doesn't have any tags attached to it, while all other passed information is present. Is there anything special about setting the tags via web services?
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
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 2/11/16, 8:10 AM|
|Seen: 363 times|
|Last updated: 4/29/16, 11:23 PM|