From 9afd5b821d067ceaed0a9c9bdb0d117b5302682e Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Thu, 26 Dec 2024 10:22:03 +0100 Subject: [PATCH] [FIX] account_invoice_report: backport use of _is_invoice_report() --- account_invoice_facturx/models/ir_actions_report.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/account_invoice_facturx/models/ir_actions_report.py b/account_invoice_facturx/models/ir_actions_report.py index a7f252aaf1..4eab964a09 100644 --- a/account_invoice_facturx/models/ir_actions_report.py +++ b/account_invoice_facturx/models/ir_actions_report.py @@ -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)