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
Odoo Training Center
|Asked: 11/6/14, 10:14 PM|
|Seen: 1317 times|
|Last updated: 3/16/15, 8:10 AM|