Commit a6d38c1d by Yvon Kerdoncuff

Merge branch 'migration-v12' of…

Merge branch 'migration-v12' of ssh://gl.cooperatic.fr:4321/cooperatic-foodcoops/third-party into migration-v12
parents f5cb4811 ab75f5d3
Pipeline #4112 failed with stage
in 0 seconds
......@@ -111,7 +111,7 @@ class CagetteShift(models.Model):
# Is member in active leave period
now = datetime.datetime.now().isoformat()
cond = [['id', 'in', partnerData['leave_ids']],
['start_date', '<', now],
['start_date', '<=', now],
['stop_date', '>', now], ['state', '!=', 'cancel']]
fields = ['start_date', 'stop_date', 'type_id', 'state']
res_leaves = self.o_api.search_read('shift.leave', 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