Community mailing list archives

community@mail.odoo.com

Re: Domain Filter for Attendance

by
Khaled Hamed
- 09/19/2016 20:19:49
Hello,

I managed to solve this issue using the following rule:

['|',('employee_id.user_id', '=', uid),'|', ('employee_id.parent_id.user_id', '=', uid), ('employee_id.department_id.manager_id.user_id', '=', uid)]

Don't know exactly why it works, but it seems that domain rule cannot parse more than two rules :-) .

Explanation is appreciated

On Tue, Sep 20, 2016 at 12:47 AM, Khaled Hamed <khaled.hamed@grandtk.com> wrote:
Dear Community,

I'm trying to restrict Attendance List to be for Department Manager and Employee's Manger on action domain value:

It works perfect for Department Manager rule:

['|', ('employee_id.user_id', '=', uid), ('employee_id.department_id.manager_id.user_id', '=', uid)]

When adding employee's manager rule nothing appear:

['|', ('employee_id.user_id', '=', uid), ('employee_id.department_id.manager_id.user_id', '=', uid), 
('employee_id.parent_id.user_id', '=', uid)]


Please advise.


--
Best regards...

Khaled Hamed Mostafa


http://www.grandtk.com



--
Best regards...

Khaled Hamed Mostafa


http://www.grandtk.com