Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
8872 Zobrazení

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
Zrušit
Nejlepší odpověď

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

Avatar
Zrušit
Autor

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

Nejlepší odpověď

Dear Jinesh,

Try to add on search domain :

('active','=',False)

I hope I helped you ...

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
bře 15
3664
2
bře 15
5471
1
čvc 25
399
1
úno 25
1213
0
zář 23
2159