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

I am trying to understand the "Authorized Employees" option in Odoo 15 Point Of Sale. It is my understanding that you can select certain employees to be allowed to a specific POS. We want to create a separate POS per cashier in order to separate the cash journals and keep track of the cash per employee. But it seems that whoever is logged in with point of sale user acces rights can just open any point of sale. Also when he/she is not an authorized employee...

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

Hello ,

As per your requirement, you need to apply record rule to filter allowed pos.config.

please apply following Record Rules for pos users group with Rule Definition (Domain Filter)

[('employee_ids', 'in', user.employee_ids.ids)]




now there is another rules needs to apply to show all the pos.config records for pos admin group.




Thanks & Regards,



CandidRoot Solutions Pvt. Ltd.

Mobile: (+91) 8849036209
Email: info@candidroot.com
Skype: live:candidroot
Web: https://www.candidroot.com
Address: 1229-1230, Iconic Shyamal, Near Shyamal Cross Road, Ahmedabad, Gujarat 380015
    

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

Thank you CandidRoot Solutions. I tested your record rule and it works like expected.
I understand about 80% of it, but could you please explain what the last ".ids" does functionally?

[('employee_ids', 'in', user.employee_ids.ids)]

employee_ids is one2many field in res.user model. so ".ids" return list of ids of all recordset.

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 12 23
3843
0
thg 10 22
2299
1
thg 5 23
2861
3
thg 10 22
6781
0
thg 4 22
2763