Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
9352 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ
Tác giả

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.

Tác giả

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 11 24
1959
1
thg 1 24
14325
3
thg 7 22
15043
1
thg 5 21
9720
2
thg 6 19
15995