Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
9300 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

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.

Awatar
Odrzuć
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.....!!!!

Powiązane posty Odpowiedzi Widoki Czynność
2
lis 24
1927
1
sty 24
14268
3
lip 22
14988
1
maj 21
9691
2
cze 19
15920