I have written following rule in employee profile to restrict employee subordinate hierarchy view:
[('id', 'child_of', [employee.id for employee in user.employee_ids])]
Refer page:
https://www.odoo.com/forum/help-1/question/record-rules-to-restrict-employee-subordinate-hierarchy-view-72371
Odoo access error
"""
The requested operation cannot be completed due to security restrictions. Please contact your system administrator.
(Document type: hr.employee, Operation: read)
"""
is showing while creating leave request by an employee. From the log, I understood that error occurs because of Odoo trying to access manager of the employee. No warning message is showing while accessing employee profile.
Please help me to sort out this issue.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
This is not a good solution. What you can do is that give access rights for the group for that model or you can add related_sudo=True along with that. Which will have the admin power
I got the issue. In hr.holidays , there is a related field to Employee's manager. Error showing while updating manager reference in the record since an employee cannot access his/her reporting officer profile.
The issue is fixed by converting the related field to field function and change type from Many2one to Char.
Please suggest if you have any better idea.
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
2
thg 5 20
|
3614 | ||
|
2
thg 11 19
|
6812 | ||
|
1
thg 10 19
|
3995 | ||
|
9
thg 9 19
|
4113 | ||
|
3
thg 12 24
|
7643 |
Give the access to write or create for the current user group for the model 'hr.employee'