Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
8953 Visualizzazioni

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
Abbandona
Risposta migliore

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

Avatar
Abbandona
Autore

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

Risposta migliore

Dear Jinesh,

Try to add on search domain :

('active','=',False)

I hope I helped you ...

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
mar 15
3756
2
mar 15
5552
1
lug 25
564
1
feb 25
1265
0
set 23
2231