콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
3546 화면

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


아바타
취소
작성자 베스트 답변

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

아바타
취소
관련 게시물 답글 화면 활동
3
9월 25
225
1
9월 25
471
1
8월 25
257
0
7월 25
1021
1
5월 25
1708