Odoo Help

0

Search with employee_id in openerp ?

By
Dhana Babu
on 11/18/13, 11:59 PM 1,333 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.

0
Jasad
On 11/20/13, 8:30 AM

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.

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

Dhana Babu
on 11/21/13, 6:16 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 11/18/13, 11:59 PM
Seen: 1333 times
Last updated: 3/16/15, 8:10 AM