Skip to content

Commit

Permalink
FIX reports for attachments
Browse files Browse the repository at this point in the history
  • Loading branch information
ecino committed Dec 6, 2021
1 parent b29621e commit 46c5a91
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def get_correspondence_attachments(self):
self.ensure_one()
attachments = dict()
# Report is used for print configuration
report = "report_compassion.b2s_letter"
report = "partner_communication.a4_no_margin"
letters = self.get_objects()
if self.send_mode == "physical":
for letter in self.get_objects():
Expand Down Expand Up @@ -254,7 +254,7 @@ def get_reminder_bvr(self):
# Don't put payment slip if we just wait the authorization form
pm = self.env['account.payment.mode'].search([
('name', '=', payment_mode)])
return {"lsv_form.pdf": ["report_compassion.b2s_letter",
return {"lsv_form.pdf": ["partner_communication.a4_no_margin",
pm.payment_method_id.lsv_form_pdf]}

# Put product sponsorship to print the payment slip for physical print.
Expand Down

0 comments on commit 46c5a91

Please sign in to comment.