Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odgovori
8929 Prikazi

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

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

Avatar
Opusti
Avtor

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
Opusti
Related Posts Odgovori Prikazi Aktivnost
0
mar. 15
3720
2
mar. 15
5536
1
jul. 25
522
1
feb. 25
1247
0
sep. 23
2194