跳至内容
菜单
此问题已终结
3 回复
940 查看

When importing a product that includes a variant in its name (e.g., '.9% SODIUM CHLORIDE (GREEN)'), Odoo does not recognize the variant properly. What steps should be taken to ensure that Odoo correctly identifies and assigns the product variant during import? I already used BoM Lines / Components / External ID 

Error Sample :  No matching record found for external id '.9% SODIUM CHLORIDE (GREEN)' in field 'BoM Lines/Component'






形象
丢弃
最佳答案

Hi Marc,

It seems you deleted your post previously.

  1. Export the product variant with fields:
    1. Display Name
    2. External ID
  2. Inside your working spreadsheet, add a sheet just call it "Product Master". Copy and Paste your exported product variant here.
  3. Now, back to your sheet1 where your BoM data is.
    1. add a column on right side of the Product, name it Product / External ID
    2. add VLOOKUP formula to get the EXTERNAL ID from "Product Master" sheet into the column
    3. add a column on right side of the BoM Lines/Component, name it BoM Lines / Component / External ID
    4. add VLOOKUP formula to get the EXTERNAL ID from "Product Master" sheet into the column
    5. ensure no #N/A found, if there is any meaning your product master is somehow not right.
    6. Save your file
  4. Back to Odoo, click on the import and choose the file and sheet you want
  5. Now, you will see there are multiple columns:
    1. Product -> don't import this 
    2. Product / External ID -> choose the corresponding Odoo field - as your screenshot.
    3. Quantity -> choose the corresponding Odoo field - as your screenshot.
    4. BoM Type -> choose the corresponding Odoo field - as your screenshot.
    5. Company -> choose the corresponding Odoo field - as your screenshot.
    6. BoM Lines/Component -> don't import this
    7. BoM Lines / Component / External ID -> choose the corresponding Odoo field - as your screenshot.

You should be able to import by this.
It seems to me that you don't have internal reference set. If you have, then you can import it easier.

形象
丢弃
最佳答案

You may use internal referance code of the product during import.

形象
丢弃
编写者 最佳答案

This is the sample data and error I am getting 

形象
丢弃
相关帖文 回复 查看 活动
2
7月 16
5908
1
1月 25
1353
0
12月 23
1530
2
10月 23
2619
4
4月 22
3210