Skip to Content
Menu
This question has been flagged
2 Replies
8932 Zobrazenia

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
Zrušiť
Best Answer

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

Avatar
Zrušiť
Autor

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
Zrušiť
Related Posts Replies Zobrazenia Aktivita
0
mar 15
3720
2
mar 15
5536
1
júl 25
522
1
feb 25
1247
0
sep 23
2194