How is possible make record rule by hr.department? For example John can see ONLY orders where order owner is in same department as John?
Thanks
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
How is possible make record rule by hr.department? For example John can see ONLY orders where order owner is in same department as John?
Thanks
Without coding this is not possible.
Record Rules are based on the current user (res.user
) and the department is stored in the employee (hr.employee
). In the user there is not field which relates to the employee and therefore it is not possible to create a record rule for your requirement.
It would be possible if you add a function-field to the res.user
object which returns the related employee.
Thanks Andreas
Create an account today to enjoy exclusive features and engage with our awesome community!
Přihlásit seRelated Posts | Odpovědi | Zobrazení | Aktivita | |
---|---|---|---|---|
|
1
bře 20
|
3623 | ||
Change department order in v7?
Vyřešeno
|
|
1
bře 15
|
3693 | |
|
1
lis 22
|
2260 | ||
|
1
lis 19
|
2611 | ||
|
2
čvc 18
|
3478 |