Commit 3107d9ba by François C.

Merge branch…

Merge branch '6813-marking-parent-gone-when-unpairing-binom-does-not-unsuscribe-parent-from-shift-template' into 'migration-v12'

unsubscribe parent from shift template before marking them gone during binom unpairing process

See merge request !279
parents f89645c8 ba534f93
Pipeline #4142 failed with stage
in 0 seconds
......@@ -938,4 +938,6 @@ def delete_pair_core(data):
child_member_update_fields['cooperative_state'] = "gone"
api.update("res.partner", [child_contact['suppleant_member_id']], child_member_update_fields)
if 'gone' in data and 'parent' in data['gone']:
cm = CagetteMember(parent['id'])
cm.unsubscribe_member()
api.update("res.partner", [parent['id']], {'cooperative_state': "gone", "is_former_associated_people": True})
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