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

Hi All,

I hope everyone is doing well.

In Odoo 17 POS, there is a menu in the top-right navbar (three-dash/burger menu) where we have options like:

  • Orders
  • Cash In/Out
  • Hide Product Images
  • Hide Category Images
  • Backend
  • Close Session
  • Debug Window

I want to restrict Cashiers from accessing the "Orders" button.

Instead of opening the Orders screen, I would like to show an error message (popup) when a cashier clicks on it.

Has anyone implemented this restriction in Odoo 17?

Any guidance or example code would be greatly appreciated.

Thanks,

Rahat Ali

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

Hi there,


To restrict cashiers from accessing the “Orders” button in the POS navbar in Odoo 17, you can do this with security groups and view customization:


    Enable Developer Mode.


    Go to Settings → Technical → User Interface → Views.


    Search for the POS view that contains the “Orders” button.


    Edit the XML and add a groups="your_group" attribute or use attrs="{'invisible': [('group_id', 'not in', [id_of_allowed_group])]}" to make the button visible only for managers or specific groups.


This way, cashiers will no longer see or be able to access the button, while managers or authorized users will still have access.


Hope it helps

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 12 24
18
0
thg 11 24
2894
0
thg 11 23
2109
1
thg 2 23
2888
0
thg 5 22
1867