Skip to content

Commit

Permalink
Merge PR #1099 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by alexis-via
  • Loading branch information
OCA-git-bot committed Dec 27, 2024
2 parents d5ec973 + 9afd5b8 commit 638c6ec
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 638c6ec

Please sign in to comment.