Skip to content

Commit 119ac80

Browse files
aronabencherifvincent-hatakeyama
authored andcommitted
account_invoice_facturx: Report: Get report name
1 parent a05e014 commit 119ac80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

account_invoice_facturx/models/ir_actions_report.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def _render_qweb_pdf_prepare_streams(self, report_ref, data, res_ids=None):
2323
collected_streams
2424
and res_ids
2525
and len(res_ids) == 1
26-
and report_ref in invoice_reports
26+
and self._get_report(report_ref).report_name in invoice_reports
2727
and not self.env.context.get("no_embedded_factur-x_xml")
2828
):
2929
move = amo.browse(res_ids)

0 commit comments

Comments
 (0)