Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
8952 Lượt xem

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


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Tác giả

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

Câu trả lời hay nhất

Dear Jinesh,

Try to add on search domain :

('active','=',False)

I hope I helped you ...

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 3 15
3756
2
thg 3 15
5552
1
thg 7 25
564
Search a message Đã xử lý
1
thg 2 25
1265
0
thg 9 23
2230