odoo import data from associated table
Importing data from odoo is very simple, but it is more troublesome to import the data of the associated table if there are foreign keys. Generally, import a table first, then use vlookup in the excel table to find the foreign key, and then import it. If it is imported in the test phase, it needs to be imported in this way when it is officially running, or it needs to be imported multiple times due to debugging problems during the test, which is very troublesome.
Use the editing tool to replace "__export__.", change the id to
"External ID", and then import it into odoo, the two tables are associated, which is very convenient.
Fortunately, odoo gave a method. I used it once before, but this time I forgot what to do. I read the odoo document, tried it, and found the right one: The odoo document is in the import page, and it is pasted here:
According to odoo's help documentation above, the changes are as follows: hr_department: "External ID","name" login,name,department_id/External ID zhangsan, Zhang San, hr_department_6
2016.02.14 Remember: You need to re-import the two tables, so that the two sides can correspond. This time, after many attempts, it was a great success. Better to re-import it. |
odoo import data from associated table
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=325525219&siteId=291194637
Recommended
Ranking