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)])Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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 ...
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrire| Publications associées | Réponses | Vues | Activité | |
|---|---|---|---|---|
|
|
0
mars 15
|
4109 | ||
|
|
2
mars 15
|
5983 | ||
|
|
1
juil. 25
|
1209 | ||
|
Search a message
Résolu
|
|
1
févr. 25
|
1646 | |
|
|
0
sept. 23
|
2607 |