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)])Odoo is the world's easiest all-in-one management software.
 It includes hundreds of business apps:
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  | 4099 | ||
|  | 2 3月 15  | 5976 | ||
|  | 1 7月 25  | 1181 | ||
| 
            
                Search a message
            
            
                    已解决
            
         |  | 1 2月 25  | 1638 | |
|  | 0 9月 23  | 2601 |