Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
4664 Lượt xem

Name,Can be Sold,Sale Price,Cost Price,Product Type,website_description,website_published,"uom_id/id"

Aluminum Stool,True,49.00,25.00,Stockable Product,"Website Desicption",True,product.uom/20
Chair,True,89.00,40.00,Stockable Product,"<p style='color:red'>Website Desicption</p>",True,product.uom/product.product_uom_cm

Above is my csv file. When I validate the CSV is show the below error:

  • No matching record found for external id 'product.uom/20' in field 'Unit of Measure' at row 2

    Get all possible values

  • No matching record found for external id 'product.uom/product.product_uom_cm' in field 'Unit of Measure' at row 3

    Get all possible values

 

May I ask how to import product with Unit of Measure by using CSV?

 

Thank you

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Try this Way......

Name,Can be Sold,Sale Price,Cost Price,Product Type,website_description,website_published,"uom_id/id"

Aluminum Stool,True,49.00,25.00,Stockable Product,"Website Desicption",True,product.product_uom_unit

please note the bold letter.

Same way you can use in second product also.

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

Thank for your help.

But I want to ask 1 more question. 

If I want to change product.product_uom_unit to another UOM (cm, ton), where I can found the varivle  variable??

Thank you.

Ảnh đại diện
Huỷ bỏ

You can find uom record under data file of product. you can use those id. go to file product/product_data.xml

Tác giả

Thanks a lot.