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

Conversation

alexis-via
Copy link
Contributor

@alexis-via alexis-via commented Dec 26, 2024

This PR fixes this warning:

2024-12-26 09:25:13,336 10016 WARNING o6_test1 py.warnings: /home/alexis/new_boite/dev/16/edi/account_invoice_facturx/models/ir_actions_report.py:26: UserWarning: unsupported operand type(s) for "==": 'ir.actions.report()' == ''account.report_invoice_with_payments''

This is caused by the fact that the report_ref arg for _render_qweb_pdf_prepare_streams() can be anything, not just a report_name.

This is a simple backport from v17. _is_invoice_report was introduced in v16.

@alexis-via
Copy link
Contributor Author

/ocabot merge minor

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 16.0-ocabot-merge-pr-1099-by-alexis-via-bump-minor, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 638c6ec into OCA:16.0 Dec 27, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at acb5645. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants