Community mailing list archives
community@mail.odoo.com
Browse archives
Re: Domain Filter for Attendance
by
Numa Extreme Systems, Gustavo Marino
OR operator ('|') process the following TWO operands, and in fact exactly two operands. In the corrected version, the second operand is again an OR expression with two operands. In total, the three OR operands you want, that why it works.
It is the same with the AND operator ('&')
Regards
Gustavo Adrian Marino
Mobile: +54 911 5498 2515
Email: gamarino@numaes.com
Skype: gustavo.adrian.marino
2016-09-19 21:23 GMT-03:00 Khaled Hamed <khaled.hamed@grandtk.com>:
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 appreciatedOn 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.----______________________________
_________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe
Reference
-
Domain Filter for Attendance
byKhaled Hamed, Khaled Hamed-
Re: Domain Filter for Attendance
byMustafa Babiker El-Siddig Mustafa Hamad -
-
Re: Domain Filter for Attendance
byNuma Extreme Systems, Gustavo Marino -
-