コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
8954 ビュー

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
3757
2
3月 15
5552
1
7月 25
564
1
2月 25
1265
0
9月 23
2231