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)])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)])you can add one more condition as ('active','=', False) in search.
Ajeet can you close this question? I don't have enough karma.
Dear Jinesh,
Try to add on search domain :
| ('active','=',False) |
I hope I helped you ...
Create an account today to enjoy exclusive features and engage with our awesome community!
Prijavi| Related Posts | Odgovori | Prikazi | Aktivnost | |
|---|---|---|---|---|
|
2
mar. 15
|
7037 | |||
|
0
mar. 15
|
5171 | |||
|
1
jul. 25
|
3958 | |||
|
Search a message
Solved
|
1
feb. 25
|
3477 | ||
|
0
sep. 23
|
4075 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.