Skip to content

Commit

Permalink
removed useless comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Prazn committed Aug 15, 2024
1 parent e892ad0 commit a5cf015
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sponsorship_compassion/models/contracts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
)
Expand Down

0 comments on commit a5cf015

Please sign in to comment.