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

How to search inactive employee record?

By
Jinesh
on 9/28/16, 6:43 AM 163 views

Hi all,

I am trying to search a employee with its 'id', but it's not working. Actually the employee is 'inactive'.

So anyone have an idea how to search the inactive employee record?

self.pool.get('hr.employee').search(cr, uid, [('id','=',4562)])


2
Ajeet Yadav
On 9/28/16, 7:16 AM

you can add one more condition as ('active','=', False) in search.

Ajeet can you close this question? I don't have enough karma.

Jinesh
on 9/28/16, 7:27 AM
2
ayman mohammed adam
On 9/28/16, 7:16 AM

Dear Jinesh,

Try to add on search domain :

('active','=',False)

I hope I helped you ...

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: 9/28/16, 6:43 AM
Seen: 163 times
Last updated: 9/28/16, 7:25 AM