Commit c7f95f50 by François C.

reprise en compte de la fonction_alter_point_event_depending_on_makeups_total_count

parent 1b055b5c
...@@ -157,9 +157,8 @@ class ShiftCounterEvent(models.Model): ...@@ -157,9 +157,8 @@ class ShiftCounterEvent(models.Model):
unsubscribe_limit = int(conf.get_param("lacagette_membership.points_limit_to_get_unsubscribed")) unsubscribe_limit = int(conf.get_param("lacagette_membership.points_limit_to_get_unsubscribed"))
if 'point_qty' in vals and vals['point_qty'] != 0: if 'point_qty' in vals and vals['point_qty'] != 0:
res_partner = self.env['res.partner'].search([('id', '=', vals['partner_id'])]) res_partner = self.env['res.partner'].search([('id', '=', vals['partner_id'])])
# to_consider_vals = self._alter_point_event_depending_on_makeups_total_count(res_partner, vals, suspension_limit) to_consider_vals = self._alter_point_event_depending_on_makeups_total_count(res_partner, vals, suspension_limit)
# _logger.info("to_consider_vals : %s", str(to_consider_vals)) _logger.debug("to_consider_vals : %s", str(to_consider_vals))
to_consider_vals = vals # TODO : Reimplement this adjustments
if res_partner: if res_partner:
partner = res_partner[0] partner = res_partner[0]
_logger.debug("partner = : %s, makeups_to_do : %s", str(partner), str(partner.makeups_to_do)) _logger.debug("partner = : %s, makeups_to_do : %s", str(partner), str(partner.makeups_to_do))
......
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