diff --git a/addons/hr_holidays/hr_holidays.py b/addons/hr_holidays/hr_holidays.py index 43d7202547c..92becaff923 100644 --- a/addons/hr_holidays/hr_holidays.py +++ b/addons/hr_holidays/hr_holidays.py @@ -487,7 +487,7 @@ class hr_employee(osv.osv): def _get_leave_status(self, cr, uid, ids, name, args, context=None): holidays_id = self.pool.get('hr.holidays').search(cr, uid, [('employee_id', 'in', ids), ('date_from','<=',time.strftime('%Y-%m-%d %H:%M:%S')), - ('date_to','>=',time.strftime('%Y-%m-%d %H:%M:%S')),('type','=','remove'),('state','not in',('cancel','refuse'))], + ('type','=','remove'),('state','not in',('cancel','refuse'))], context=context) result = {} for id in ids: