Skip to Content
मेन्यू
This question has been flagged
1 Reply
9298 Views

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
Discard
Best Answer

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
Discard
Author

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.

Author

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

Related Posts Replies Views Activity
2
नव॰ 24
1927
1
जन॰ 24
14267
3
जुल॰ 22
14987
1
मई 21
9691
2
जून 19
15918