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

Hi,

I’m trying to import product.product data from Odoo 12 to Odoo 18, but it doesn’t work. I use the standard import tool, with a CSV file, and I checked that all required fields and categories are there.

Still, the import fails and I don’t understand why.

Has anyone done this before? Any tips?

Thanks a lot!

形象
丢弃

"It doesn't work" - can you share the error message you are getting so readers have more information?

编写者

The error I get is:

"Missing required value for the field 'attribute_id' on a related model [product_template_attribute_line] with multiple rows."

It happens when I try to import products with variants. I think the import file doesn’t provide the right format for attribute_line_ids.

Has anyone managed to import products with variants? I'd really appreciate some help on how to format that correctly.

Thanks!

最佳答案

Hi Fanouillere thomas

Before importing your CSV file into Odoo 18, make sure the column names match the ones used in Odoo, as some might have changed. Check that all the data, like dates, true/false values, and prices, are in the correct format. Also, ensure that the product categories in your file already exist in Odoo 18, or use External IDs to link them correctly.

形象
丢弃
最佳答案

Hi,

1.Check Field Compatibility: Ensure your CSV field names match Odoo 18, as some may have been renamed or moved.

2.Review Data Types: Verify that data types (e.g., dates, booleans, currencies) are correct and compatible with Odoo 18.

3.Check Product Categories: Make sure the product categories in your CSV exist in Odoo 18, and use External IDs if necessary.


Hope it helps

形象
丢弃
最佳答案

To import products from Odoo 12 to Odoo 18, export them as CSV from Odoo 12 and format them for Odoo 18's structure.

Use the import tool in Odoo 18, ensuring fields match the new version’s requirements.

形象
丢弃
相关帖文 回复 查看 活动
2
3月 24
1974
2
10月 23
3169
2
1月 23
4780
2
5月 25
889
4
5月 25
4365