Commit c1883bb3 by François C.

#7036 : recalcul statut suite suppression créneau

parent ee2f7f9b
......@@ -17,3 +17,14 @@ class ShiftTemplateRegistration(models.Model):
member = self.env['res.partner'].search([('id', '=', vals['partner_id'])])
member.recompute_member_states()
return super_res
@api.multi
def unlink(self):
partners_to_update = []
for reg in self:
partners_to_update.append(reg.partner_id)
super_res = super(ShiftTemplateRegistration, self).unlink()
for p in partners_to_update:
p.recompute_member_states()
return super_res
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