Community mailing list archives

community@mail.odoo.com

Re: Domain Filter for Attendance

by
Mustafa Babiker El-Siddig Mustafa Hamad
- 09/20/2016 01:45:03

Hello ,

Check your quotes in the domain conditions.

Thanks


On Sep 20, 2016 2:53 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

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe