Odoo Help


Import partner tags into Odoo 7 using XML-RPC?

Daniel Kauffman
on 11/6/14, 10:14 PM 1,437 views

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.

Daniel Kauffman
On 11/7/14, 1:46 AM

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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 11/6/14, 10:14 PM
Seen: 1437 times
Last updated: 3/16/15, 8:10 AM