Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
2 Besvarelser
9058 Visninger

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
Kassér
Bedste svar

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

Avatar
Kassér
Forfatter

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

Bedste svar

Dear Jinesh,

Try to add on search domain :

('active','=',False)

I hope I helped you ...

Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
0
mar. 15
3853
2
mar. 15
5638
1
jul. 25
632
1
feb. 25
1319
0
sep. 23
2272