Skip to content

Commit

Permalink
FIX payment slip attachments for corresponding people
Browse files Browse the repository at this point in the history
  • Loading branch information
ecino committed May 24, 2022
1 parent 9085d23 commit f1ed937
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -767,9 +767,9 @@ def get_sponsorship_payment_slip_attachments(self):

# Include all active sponsorships for Permanent Order
bv_sponsorships |= (
sponsorships.filtered(lambda s: s.payment_mode_id == permanent_order)
.mapped("group_id.contract_ids")
.filtered(lambda s: s.state in ("active", "waiting"))
sponsorships.filtered(lambda s: s.partner_id == self.partner_id and s.payment_mode_id == permanent_order)
.mapped("group_id.contract_ids")
.filtered(lambda s: s.state in ("active", "waiting"))
)

attachments = {}
Expand Down

0 comments on commit f1ed937

Please sign in to comment.