Skip to content

Commit

Permalink
[REV] revert unconventional use of super().with_context(...)
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgis committed Aug 7, 2024
1 parent 5c8321a commit d7aacc4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions report_qweb_pdf_watermark/models/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,8 @@ 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)
return super(Report, self.with_context(res_ids=res_ids))._render_qweb_pdf(
report_ref, res_ids=res_ids, data=data
)
return super()._render_qweb_pdf(report_ref, res_ids=res_ids, data=data)

Expand Down

0 comments on commit d7aacc4

Please sign in to comment.