[IMP]hr_holiday: remove date_to condition from domain for getting correct value

bzr revid: dbr@tinyerp.com-20120511102314-3xx8ht0sylll31rw
This commit is contained in:
DBR (OpenERP) 2012-05-11 15:53:14 +05:30
parent f08d7c254b
commit e53ce6d3c6
1 changed files with 1 additions and 1 deletions

View File

@ -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: