This question has been flagged
1 Reply
4192 Views

I Need to search the rows using employee_id, Here my code is,

<field name="context">{ 'search_default_group_type': 1, 'employee_id': employee_id, 'search_default_validated': 1}</field>

<field name="domain">[('holiday_type','=','employee')]</field>

But It gives the employee_id is not defined.

Note: I don't want to search the rows with user_id.

Avatar
Discard
Best Answer

Hi Dhana Babu,

When i go through your code, you are passing employee_id through context. But the employee id you are assigning against 'employee_id' is not defined.

Avatar
Discard
Author

Sorry for late response @jasad. ok how to give the employee id in search box ?