Ir al contenido
Menú
Se marcó esta pregunta

Hello


I dont know how but On Product attribute page we can add same Value multiple time


Example : Fabric Product Attribute I can add Cotton Value Multiple times (Duplicate Entry)


Due to Duplicate Product Attribute value I am getting Product import Error SO I just need to Remove extra one Values from the product attribute page and then import Product from the product page


Anyone having any idea how to stop Duplicate entry on Product Attribute page?


please help


thanks

VP

Avatar
Descartar
Mejor respuesta

You can achieve it via `Automation Rules

  1. first install the module `Automation Rules` via app menu (don't forget to remove `app` filter)
  2. go to menu setting => Technical => Automation Rules
  3. if you don't see `Technical` button, you can activate developer mode first by scroll down and click `Activate the developer mode`
  4. create new record, and add this code
exist = model.search([
    ('name', '=', record.name),
    ('id', '!=', record.id),
])
if exist:
    raise UserError('The attribute name already used!')

Avatar
Descartar
Autor

Hello

I have followed all steps from setting page-->Technical option--->Automation Rules

After clicking on Automation Rules received message like "Connection lost. Trying to reconnect"

after few seconds message received like this "Connection Restored. You are back online"

Same Message appearing after clicking on setting page-->Technical option--->Automation Rules button

please let me know what is the exact issue?

thanks

Autor Mejor respuesta

Hello

I have followed all steps from setting page-->Technical option--->Automation Rules

After clicking on Automation Rules received message like "Connection lost. Trying to reconnect"


after few seconds message received like this "Connection Restored. You are back online"

Same Message appearing after clicking on setting page-->Technical option--->Automation Rules button


please let me know what is the exact issue?

thanks


Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
jul 25
888
2
oct 24
1481
1
ago 24
1340
1
ago 24
2041
2
ago 24
2649