Commit ddc129a6 by Yvon

bug fix in makeup total count computation : require shift to be open otherwise…

bug fix in makeup total count computation : require shift to be open otherwise closed shifts in the future are still taken into account
parent 55158c32
......@@ -44,7 +44,8 @@ class ShiftCounterEvent(models.Model):
['name', '=', p["name"]],
['shift_type', '=', 'standard'],
['is_makeup', '=', True],
['date_begin', '>=', datetime.datetime.now().isoformat()]
['date_begin', '>=', datetime.datetime.now().isoformat()],
['state', '=', 'open']
]
fields = ['id']
res_shift_reg = self.env['shift.registration'].search_read(cond, fields)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment