Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
9353 มุมมอง

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

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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.

อวตาร
ละทิ้ง
ผู้เขียน

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.

ผู้เขียน

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

Related Posts ตอบกลับ มุมมอง กิจกรรม
2
พ.ย. 24
1959
1
ม.ค. 24
14325
3
ก.ค. 22
15043
1
พ.ค. 21
9720
2
มิ.ย. 19
15995