Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
9316 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Penulis

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.

Penulis

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

Post Terkait Replies Tampilan Aktivitas
2
Nov 24
1935
1
Jan 24
14282
3
Jul 22
14996
1
Mei 21
9695
2
Jun 19
15931