İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
8888 Görünümler

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
Vazgeç
En İyi Yanıt

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

Avatar
Vazgeç
Üretici

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

En İyi Yanıt

Dear Jinesh,

Try to add on search domain :

('active','=',False)

I hope I helped you ...

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Mar 15
3682
2
Mar 15
5497
1
Tem 25
444
Search a message Çözüldü
1
Şub 25
1227
0
Eyl 23
2172