Odoo Help

Welcome!

This community 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.

0

How to import many2many incrementally?

By
Jairo Llopis
on 3/3/14, 6:47 AM 941 views

I have to import partner tags from several places, but each time I execute an import, the previous tags get erased.

For example, if I import:

id tags
base.res_partner_2 Agriculture
base.res_partner_13 Agriculture

... then it tags both partners as Agriculture. Then, if I import:

id tags
base.res_partner_2 Favourite partners
base.res_partner_13 Favourite partners

... then it tags both partners as Favourite partners, but removes them from Agriculture. This is exactly the same result of importing:

id tags
base.res_partner_2 Agriculture
base.res_partner_13 Agriculture
base.res_partner_2 Favourite partners
base.res_partner_13 Favourite partners

I assume that behind the scenes it is using method 6, but I need it to use method 4.

I need to have both tags, but I cannot import them comma-separated, because this would cause the deletion of any user-defined tags in production database, and that would be awful. Also because it would produce extremely long data in those cells, and OpenERP seems to have a limit of characters.

How can I make that?

Your Answer

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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 3/3/14, 6:47 AM
Seen: 941 times
Last updated: 3/16/15, 8:10 AM