Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
9371 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
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 Odpovědi Zobrazení Aktivita
2
lis 24
2015
1
led 24
14338
3
čvc 22
15071
1
kvě 21
9728
2
čvn 19
16025