csv export of ODOO

When exporting odoo's csv, after selecting the export field, you can save the template, and the template is saved in the ir_exports and ir_exports_line tables.

When selecting a field for the first time, such as selecting a supplier/supplier, the ID of the supplier can be exported.



  



 Once the template is saved and imported again, there is no ID.



 

Look at the data analysis in the table to see the corresponding relationship.

seller_ids corresponds to the id of product.supplierinfo associated with the product.product table

"seller_ids/name" corresponds to name. If you want to output data like "__export__.res_partner_1574",

To be manually changed to "seller_ids/name/id"

"seller_ids/name/.id" corresponds to the id of the supplier, which is 1574.

 

 2017-3-15

If you need to import, you need to use [Export compatible with import format], so that the field format of the title of the exported csv can automatically identify the matching field name when importing. Such as seller_ids/name/.id.

When importing many2many data,

"id","login","name","password","groups_id/.id"

"","999997","test1","1234","3,5,11,19,22,34,48,21,35,28,53"

"","999996","test2","1234","3,5,11,19,22,34,48,21,35,28,53"

Put the corresponding many-to-many fields in a quotation mark and separate them with commas

 

When importing the data of one2many, you can use the following format, the second one has no details and no header data.

Order Date,Order Reference,Supplier,Destination,Pricelist,Order Lines / Product,Order Lines / Quantity

2012-12-15,PO00008,ASUSTeK,Stock,Default Purchase Pricelist,ADPT,20

,,,,,CARD,30

,,,,,C-Case,40

2012-12-15,PO00009,Axelor,Stock,Default Purchase Pricelist,CD,5

,,,,,CPUa8,15

2012-12-15,PO000010,China Export,Stock,Default Purchase Pricelist,HDD SH-1,10

,,,,,HDD SH-2,20

,,,,,LAP-CUS,35

,,,,, LAP-E5.40

 

 

 

 

 

 

 

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326573037&siteId=291194637