Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
112 Vues

Hello,

While importing attributes , how to prevent duplicate entries when attribute already defined but i want to import attribute values in that attribute


example 

already having attribute as strength with 10 ml but again i want to import data in strength attribute as 100 ml, 200 ml, etc...


Odoo creating new entries as strength and getting 2 attribute as strengths as 

  1. strength values 10ml
  2. strength values 100 ml , 200 ml

while importing i want 100 ml  and 200 ml in 1 strength

Avatar
Ignorer
Auteur Meilleure réponse

Thank you I did the same and done successfully 

Avatar
Ignorer
Meilleure réponse

Hi,

When importing product attributes in Odoo, duplicates appear because Odoo creates a new attribute if it only sees the name again. To avoid this, reference the existing attribute’s External ID in your import file and add only the new values (e.g., 100 ml, 200 ml). Without the External ID, Odoo assumes it’s a new attribute and duplicates it.


Hope it helps



Avatar
Ignorer