Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2 Respostas
8945 Visualizações

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
Cancelar
Melhor resposta

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

Avatar
Cancelar
Autor

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

Melhor resposta

Dear Jinesh,

Try to add on search domain :

('active','=',False)

I hope I helped you ...

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
0
mar. 15
3751
2
mar. 15
5539
1
jul. 25
555
1
fev. 25
1253
0
set. 23
2223