İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
1159 Görünümler

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
Vazgeç
En İyi Yanıt

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
Vazgeç
Üretici

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

Üretici En İyi Yanıt

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
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Tem 25
883
2
Eki 24
1476
1
Ağu 24
1339
1
Ağu 24
2040
2
Ağu 24
2642