diff --git a/sponsorship_compassion/models/contracts.py b/sponsorship_compassion/models/contracts.py index ce0fe57e0..dbfc8cc07 100644 --- a/sponsorship_compassion/models/contracts.py +++ b/sponsorship_compassion/models/contracts.py @@ -992,7 +992,7 @@ def _on_sponsorship_finished(self): Terminate related gift contracts and sync with GMC. """ departure = self.env.ref("sponsorship_compassion.end_reason_depart") - for sponsorship in self: # self was not the instance of the sponsorship, wanted ???? + for sponsorship in self: gift_contract_lines = self.env["recurring.contract.line"].search( [("sponsorship_id", "=", sponsorship.id)] )