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.
When importing partner tags into Odoo 7 using XML-RPC, the category_id field of the res.partner model is ignored. Is this a bug? Or is there some other way to import tags using XML-RPC? The res_partner_category table has already been populated and now I just need to tag each partner with the proper tags.
Thanks to feketemihai's comment at https://github.com/odoo/odoo/issues/3509 I realized that I was using the wrong semantics for setting the field value.
This being my first deployment with Odoo, I found the use of the singular (category_id) as opposed to the plural (category_ids) for the field name confusing enough that I used the wrong semantics for setting the field value.
The following document shows the proper semantics for setting different types of field values:
And the type of relationship (one2many, many2many, many2one) can be discovered by viewing the source files, in the case of the res.partner model the source file is:
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: 11/6/14, 10:14 PM|
|Seen: 1147 times|
|Last updated: 3/16/15, 8:10 AM|