Commit 2bb6880e by François C.

#7203 : suspendre correspondance -1 pt = 1 rattrapage lors de points négatifs générés par congés

parent b00e5742
......@@ -132,6 +132,9 @@ class ShiftCounterEvent(models.Model):
if 'technical_note' in vals and vals['technical_note'] == 'no trigger':
return 0
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:
res_partner = self.env['res.partner'].search([('id', '=', vals['partner_id'])])
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