Skip to content

Commit

Permalink
[FIX] report_qweb_pdf_watermark: Recursion Error
Browse files Browse the repository at this point in the history
  • Loading branch information
bosd committed Jan 18, 2025
1 parent 1a63b84 commit 3a2afc9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions report_qweb_pdf_watermark/models/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,7 @@ class Report(models.Model):

def _render_qweb_pdf(self, report_ref, res_ids=None, data=None):
if not self.env.context.get("res_ids"):
return (
super()
.with_context(res_ids=res_ids)
._render_qweb_pdf(report_ref, res_ids=res_ids, data=data)
)
self = self.with_context(res_ids=res_ids)
return super()._render_qweb_pdf(report_ref, res_ids=res_ids, data=data)

@staticmethod
Expand Down

0 comments on commit 3a2afc9

Please sign in to comment.