Hi,
I've related department_id from hr_employees in some entities like analytic_account, res_partner, project_project and I'd like to filter this entities using user logged department.
Example: The user logged must access projects from his department
The user logged must access customers (partners) from his department
The user logged must access analytics accounts from his department.
I'm trying to filter using rules and groups in that entities using this:
[('department_id.member_ids.user_id','=', 'user.id')]
[('department_id','=',user.id.employee_id.department_id)]
[('department_id','=',user.context_department_id.id)]
But it's not working.
Can you help me? Any example?
Thanks
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
Vishal,
Thanks for your response.
I was thinking the same, but, any ideas how to check my user_id logged with department_id?
In many companies, it's very common separate information like partners, opportunities, projects, accounts, into differents internal departments.
Regards
Hello Santiago,
You are not getting through because you can fetch a related user from the employee but not the other way round. Hope this helps.
Vishal Ratani
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
0
lip 25
|
789 | ||
Filters in multiple companies
Rozwiązane
|
|
1
maj 25
|
1521 | |
ADD PROPERTIES
Rozwiązane
|
|
1
maj 25
|
1731 | |
|
2
mar 25
|
1447 | ||
|
1
mar 25
|
1708 |