Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
9313 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Autore

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.

Autore

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

Post correlati Risposte Visualizzazioni Attività
2
nov 24
1933
1
gen 24
14281
3
lug 22
14995
1
mag 21
9695
2
giu 19
15927