Odoo Help


How to search inactive employee record?

on 9/28/16, 6:43 AM 927 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)])

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.

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

Dear Jinesh,

Try to add on search domain :


I hope I helped you ...

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.


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)


Asked: 9/28/16, 6:43 AM
Seen: 927 times
Last updated: 9/28/16, 7:25 AM