Skip to Content
Menu
This question has been flagged
2 Replies
8992 Rodiniai

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)])


Portretas
Atmesti
Best Answer

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

Portretas
Atmesti
Autorius

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 ...

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
0
kov. 15
3787
2
kov. 15
5592
1
liep. 25
588
1
vas. 25
1296
0
rugs. 23
2244