Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
8858 Vistas

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
Descartar
Mejor respuesta

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

Avatar
Descartar
Autor

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

Mejor respuesta

Dear Jinesh,

Try to add on search domain :

('active','=',False)

I hope I helped you ...

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
mar 15
3656
2
mar 15
5440
1
jul 25
373
1
feb 25
1201
0
sept 23
2143