Hello, I know my question seems kinda dumb (there is an attribute "domain" so what's the point ?) but here's my problem:
I created a default filter:
<filter string="My Validations" icon="terp-personal" name="my_validations"
domain="['|',('employee_id.parent_id.user_id','=', uid),'&',('employee_id.coach_id.user_id','=',uid),('state', '=', 'validate1')]"
help="My validations"/>
with this domain, I have no problem, but it's not exactly what I want ... i want to add an other constraint: state = confirm so I tried many things and nothing worked (in order to have something like ( employee.parent AND state confirm) OR (employee.coach AND state validate1)
domain="['&',('employee_id.parent_id.user_id','=', uid),'|',('state','=','confirm'),'&',('employee_id.coach_id.user_id','=',uid),('state', '=', 'validate1')]"
This one works, but only for the first part (employee.parent and confirm), the second one is not seen.
domain="['|',('&',('employee_id.parent_id.user_id','=', uid),('state','=','confirm')),('&',('employee_id.coach_id.user_id','=',uid),('state', '=', 'validate1'))]"
This one throw an error " Invalid leaf ['&', ['employee_id.parent_id.user_id', '=', 316], ['state', '=', 'confirm']]"
domain="['|',['&',('employee_id.parent_id.user_id','=', uid),('state','=','confirm')],['&',('employee_id.coach_id.user_id','=',uid),('state', '=', 'validate1')]]"
And this one throw an error "TypeError:results.groupby is undefined"
And I'm lost ... I don't know what to try now ...
Please ... Help ç_ç