Na een bulk-import van producten staan er ineens dubbele varianten in Odoo. Hoe ontstaat dat en hoe lost u het op — zonder handmatig alles door te lopen?
Oorzaak: geen unieke key
Odoo herkent "bestaand vs nieuw" alleen aan een external ID of Internal Reference. Als uw Excel geen van beide heeft, ziet Odoo elk ingelezen record als nieuw, ook als er al iets met die naam bestaat.
Fix vooraf: external ID toevoegen
Voeg aan uw importbestand een kolom id of External ID toe. Formaat: import.product_SKU001. Bij volgende imports update Odoo de bestaande records.
Fix achteraf: duplicaten opsporen
Ga naar Inkoop → Producten en groepeer op Internal Reference. Rijen met count > 1 zijn dubbel. Selecteer en gebruik Actie → Merge om ze samen te voegen — Odoo koppelt dan alle bewegingen, orders en voorraad aan één master product.
Voorkomen: uniciteit afdwingen
Voor extra veiligheid kunt u in Instellingen → Technisch → Database Structure → SQL Constraints een unique constraint op default_code zetten. Dan weigert Odoo elk nieuw product met een bestaande SKU.
Vragen over uw Odoo implementatie? Doe de gratis Business Scan.
Start de Business Scan →After a bulk import of products, duplicate variants suddenly appear in Odoo. How does this happen and how do you fix it — without going through everything manually?
Cause: no unique key
Odoo only recognizes "existing vs new" by an external ID or Internal Reference. If your Excel has neither, Odoo treats every imported record as new, even if something with that name already exists.
Fix in advance: add an external ID
Add a column id or External ID to your import file. Format: import.product_SKU001. On subsequent imports, Odoo updates the existing records.
Fix afterwards: tracking down duplicates
Go to Purchase → Products and group by Internal Reference. Rows with count > 1 are duplicates. Select them and use Action → Merge to combine them — Odoo then links all movements, orders and stock to a single master product.
Prevention: enforce uniqueness
For extra safety, you can set a unique constraint on default_code under Settings → Technical → Database Structure → SQL Constraints. Odoo will then reject any new product with an existing SKU.
Questions about your Odoo implementation? Take the free Business Scan.
Start the Business Scan →