Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][FIX] account_invoice_report: backport use of _is_invoice_report() #1099

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading