跳至內容
選單
此問題已被標幟
2 回覆
8941 瀏覽次數

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
3750
2
3月 15
5539
1
7月 25
553
1
2月 25
1253
0
9月 23
2222