Odoo Help

Welcome!

This community 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.

0

Search with employee_id in openerp ?

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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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