跳至内容
菜单
此问题已终结
2 回复
8924 查看

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


形象
丢弃
最佳答案

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

形象
丢弃
编写者

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

最佳答案

Dear Jinesh,

Try to add on search domain :

('active','=',False)

I hope I helped you ...

形象
丢弃
相关帖文 回复 查看 活动
0
3月 15
3713
2
3月 15
5533
1
7月 25
508
1
2月 25
1246
0
9月 23
2193