Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
8939 Vizualizări

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)])


Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Autor

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

Cel mai bun răspuns

Dear Jinesh,

Try to add on search domain :

('active','=',False)

I hope I helped you ...

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
mar. 15
3750
2
mar. 15
5539
1
iul. 25
553
1
feb. 25
1253
0
sept. 23
2221