Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
8947 Vues

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
Ignorer
Meilleure réponse

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

Avatar
Ignorer
Auteur

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

Meilleure réponse

Dear Jinesh,

Try to add on search domain :

('active','=',False)

I hope I helped you ...

Avatar
Ignorer
Publications associées Réponses Vues Activité
0
mars 15
3753
2
mars 15
5540
1
juil. 25
559
1
févr. 25
1253
0
sept. 23
2224