Commit 8634d413 by Yvon Kerdoncuff

Suppression lignes causant bug

parent c7f95f50
...@@ -134,9 +134,6 @@ class ShiftCounterEvent(models.Model): ...@@ -134,9 +134,6 @@ class ShiftCounterEvent(models.Model):
if 'technical_note' in vals and vals['technical_note'] == 'no trigger': if 'technical_note' in vals and vals['technical_note'] == 'no trigger':
return 0 return 0
try: try:
ok_to_process = True
if 'name' in vals and name == 'Anticipated Leave':
ok_to_process = False
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_add = abs(vals['point_qty']) to_add = abs(vals['point_qty'])
......
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