Odoo Help

0

How to search inactive employee record?

By
Jinesh
on 9/28/16, 6:43 AM 535 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 ...

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