Commit 8b3bd9fb by François C.

Implémentation fonction get_makeups_choosen_shifts

parent f6f6a0de
......@@ -75,6 +75,18 @@ class ResPartner(models.Model):
default= 0)
@api.multi
def get_makeups_choosen_shifts(self):
for partner in self:
cond = [
['partner_id', '=', partner.id],
['shift_type', '=', 'standard'],
['is_makeup', '=', True],
['date_begin', '>=', datetime.datetime.now().isoformat()],
['state', '=', 'open']
]
fields = ['id']
return self.env['shift.registration'].search_read(cond, fields)
@api.multi
def _compute_lacagette_working_state(self):
......
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