İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
3597 Görünümler

The default of the button is invisible.

Access Right Scenario:
User: The button will show if create_uid is not equal to the partner_id
Manager: This button will always display.

What I did was:

attrs="{'visible':[('groups_ids','=','group_user'),('groups_ids','=','group_manager')]}"

Any idea on how to achieve it in another way?


Avatar
Vazgeç
En İyi Yanıt

Create a boolean computed field whose value is computed based on the conditions you need and use the value of that field to control the visibility of the button.

Avatar
Vazgeç
Üretici

thanks for this

İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Haz 23
2941
0
Tem 23
1845
0
May 18
3566
0
Tem 23
2
0
Tem 23
5