Skip to Content
मेन्यू
This question has been flagged
2 Replies
8880 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)])


Avatar
Discard
Best Answer

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

Avatar
Discard
Author

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

Best Answer

Dear Jinesh,

Try to add on search domain :

('active','=',False)

I hope I helped you ...

Avatar
Discard
Related Posts Replies Views Activity
0
मार्च 15
3671
2
मार्च 15
5480
1
जुल॰ 25
424
1
फ़र॰ 25
1218
0
सित॰ 23
2160