Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
9306 Vizualizări

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..

Imagine profil
Abandonează
Cel mai bun răspuns

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.

Imagine profil
Abandonează
Autor

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.

Autor

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

Related Posts Răspunsuri Vizualizări Activitate
2
nov. 24
1931
1
ian. 24
14273
3
iul. 22
14991
1
mai 21
9693
2
iun. 19
15923