Skip to Content
Menú
This question has been flagged
2 Respostes
8905 Vistes

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
Descartar
Best Answer

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

Avatar
Descartar
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
Descartar
Related Posts Respostes Vistes Activitat
0
de març 15
3705
2
de març 15
5527
1
de jul. 25
481
1
de febr. 25
1242
0
de set. 23
2185