Commit 1bc14e83 by François C.

Correctif coquille dans _update_partner_makeups_to_do

parent 47c016bb
......@@ -134,7 +134,7 @@ class ShiftCounterEvent(models.Model):
try:
if 'point_qty' in vals and vals['point_qty'] < 0:
res_partner = self.env['res.partner'].search([('id', '=', vals['partner_id'])])
res_partner[0].update({makeups_to_do: res_partner[0].makeups_to_do + 1})
res_partner[0].update({'makeups_to_do': res_partner[0].makeups_to_do + 1})
return 0
except Exception as e:
_logger.error("_update_partner_makeups_to_do : %s", str(e))
......
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