I created a duplicate variant list. How can I delete it?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Comptabilité
- Inventaire
- PoS
- Projet
- MRP
Cette question a été signalée
Hi,
If you’ve created a duplicate product variant in Odoo 19, the way to remove it depends on what was duplicated. If you see two identical entries under Products → Variants, simply switch to list view, locate the duplicate, and delete it using Action → Delete. If the delete option is unavailable because the variant is linked to transactions, it’s safer to archive it instead so it no longer appears in selection lists but remains in the database for traceability.
If the duplication comes from repeated attribute lines on a product template (for example, two “Color” or “Size” entries), open the product under Sales → Products, go to the Variants tab, and remove the extra attribute line using the trash icon. After saving, Odoo will automatically clean up the redundant variants created by that duplication.
For duplicates created by import or customization, you can access them in Developer Mode through Settings → Technical → Database Structure → Models → product.product, find the records, and delete them carefully. However, deleting is risky if the variant has been used in stock moves, sales, or accounting entries — in those cases, archiving is the best practice. In summary, delete unused variants, remove duplicate attribute lines, and archive anything that’s already tied to business transactions.
Hope it helps
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrire| Publications associées | Réponses | Vues | Activité | |
|---|---|---|---|---|
|
|
1
mars 24
|
7491 | ||
|
|
1
juil. 24
|
3856 | ||
|
|
6
juin 20
|
4473 | ||
|
|
1
juil. 25
|
1165 | ||
|
|
1
oct. 25
|
3505 |
I have created two variants called "Size" and it is causing confusion. I need to delete the variant set.
Odoo calls this an attribute. You can't archive it if it has already been used on products. You can rename it to something like SIZES --> Do not use and either archive or rename the related variants.