Skip to content

Commit

Permalink
[FIX] account_invoice_report: backport use of _is_invoice_report()
Browse files Browse the repository at this point in the history
  • Loading branch information
alexis-via committed Dec 26, 2024
1 parent d5ec973 commit 9afd5b8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions account_invoice_facturx/models/ir_actions_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,11 @@ def _render_qweb_pdf_prepare_streams(self, report_ref, data, res_ids=None):
report_ref, data, res_ids=res_ids
)
amo = self.env["account.move"]
invoice_reports = amo._get_invoice_report_names()
if (
collected_streams
and res_ids
and len(res_ids) == 1
and report_ref in invoice_reports
and self._is_invoice_report(report_ref)
and not self.env.context.get("no_embedded_factur-x_xml")
):
move = amo.browse(res_ids)
Expand Down

0 comments on commit 9afd5b8

Please sign in to comment.