how to refer to actual user in a transition condition.
For example:
In the flow hr.wkf.holidays we have a transition from the confirm state to the first_validate where the condition is double_validation and the required group is HHRR/Director, which is fine.
But we need to state that the approver should actually be the director of the requesting employee and not a general director.
So we wanted to change the condition this way: double validation and (employee_id.parent_id.user_id == user.id) i.e. that the one who will liberate is the director of the requesting employee, but I got the error that the "user" object is not known.
So the question is how to refer to the actual user in a condition?