Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd

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
Annuleer
Beste antwoord

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
Annuleer
Auteur

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

Auteur Beste antwoord

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
jul. 25
883
2
okt. 24
1480
1
aug. 24
1340
1
aug. 24
2040
2
aug. 24
2644