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

hello, i want to create a Button that only visible to ADMIN only. if other than admin logged in , the button would be INVISIBLE...

thanks a lot in advance

Regards, Ali..

Avatar
Vazgeç
En İyi Yanıt

Hello,

You can do like:

<button string="Cancel all" groups="base.group_erp_manager"/>

In groups you have to assign the group to whom you want to display button.

Thanks.

Avatar
Vazgeç
Üretici

how to give access right programmatically...???

In xml add groups="base.group_erp_manager" to the button you have created. This group already exist so no need to add other code.

Üretici

thanks a lot.....!!!!

İlgili Gönderiler Cevaplar Görünümler Aktivite
2
Kas 24
1924
1
Oca 24
14265
3
Tem 22
14982
1
May 21
9689
2
Haz 19
15910