Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
8920 Weergaven

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
Annuleer
Beste antwoord

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

Avatar
Annuleer
Auteur

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

Beste antwoord

Dear Jinesh,

Try to add on search domain :

('active','=',False)

I hope I helped you ...

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
0
mrt. 15
3709
2
mrt. 15
5532
1
jul. 25
499
1
feb. 25
1246
0
sep. 23
2192