Commit 813db0c0 by Yvon Kerdoncuff

#7426 : remove suspicious code introduced in v12 port and updating makeups_to_do…

#7426 : remove suspicious code introduced in v12 port and updating makeups_to_do inside a getter method
parent 95b70fab
......@@ -198,13 +198,6 @@ class CagetteShift(models.Model):
if partnerData['shift_type'] == 'standard':
partnerData['in_ftop_team'] = False
# Because 'in_ftop_team' doesn't seem to be reset to False in Odoo
else:
if partnerData['final_ftop_point'] < 0 and partnerData['makeups_to_do'] == 0 and partnerData['cooperative_state'] == "suspended":
partnerData['makeups_to_do'] = int(abs(partnerData['final_ftop_point']))
try:
self.o_api.update('res.partner', [id], {'makeups_to_do': partnerData['makeups_to_do']})
except Exception as e:
coop_logger.error("update res.partner.makeups_to_do %s", str(e))
if partnerData['suppleant_member_id']:
cond = [['partner_id.id', '=', partnerData['parent_id'][0]]]
else:
......
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