Help

欢迎!

该社区面向专业人士和我们产品和服务的爱好者。
分享和讨论最好的内容和新的营销理念,建立您的专业形象,一起成为更好的营销人员。


0

Re-import or update products from external pricelist file when product barcode is defined

Avatar
odoo
1 Comment
Avatar
Discard
Avatar
odoo
-

Thank you. Your solution works. Any way to automate this inside Odoo maybe?

1 Answer
0
Avatar
odoo
Best Answer

Odoo determines whether to update or newly create a Product via CSV based on the external_id field.

When this column in the CSV is empty, Odoo assumes it is a new Product, an therefore tries to create a new Product. 
When this column is set, Odoo attempts to find an existing record with that external_id and either updates the Product (if that external_id is found) or creates a new Product (with this exact external_id).

That being said, if you happen to be able to re-import your Products from scratch from CSV (i.e. by removing the barcodes from all currently existing Products and then archiving them) you could simply duplicate the barcode column in your CSV and use that duplicated column as your external_id. This way, when importing CSV files again in future, you can again use that same concept, ultimately representing the barcode, to match your Products.

Avatar
Discard