-
-
Notifications
You must be signed in to change notification settings - Fork 849
[19.0][MIG] report_xml #1072
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
[19.0][MIG] report_xml #1072
Conversation
Almost any XML must start with this. Let's make it easier.
Any report inheriting this AbstractModel can check its XML results against any XSD.
Previous instructions were misleading
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: reporting-engine-12.0/reporting-engine-12.0-report_xml Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-12-0/reporting-engine-12-0-report_xml/
Currently translated at 100.0% (16 of 16 strings) Translation: reporting-engine-18.0/reporting-engine-18.0-report_xml Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-18-0/reporting-engine-18-0-report_xml/it/
* report_py3o, report_xlsx, report_xml odoo core introduced an additional argument in [1] to the method inherited by report_py3o, report_xlsx, report_xml. When the same method is inherited in other addons, it raises a "TypeError: ... takes X positional arguments but Y were given" due to a mismatch in the argument count. This commit updates the mentioned method signature to match the latest odoo core definition, ensuring compatibility and preventing runtime errors when multiple addons override the same function. No functional changes are introduced. Only method signatures have been synchronized with upstream Odoo
Currently translated at 100.0% (16 of 16 strings) Translation: reporting-engine-18.0/reporting-engine-18.0-report_xml Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-18-0/reporting-engine-18-0-report_xml/tr/
|
/ocabot migration report_xml Please remind me one more time what this layer provides against putting a QWeb template with the XML header and content like Odoo does for Factur-X and others (example: https://github.com/odoo/odoo/blob/19.0/addons/account_edi_ubl_cii/data/cii_22_templates.xml) |
|
It allows to generate a report that delivers an XML file directly. Otherwise, Odoo will send you back an HTML (with xml format, but an HTML) or PDF. |
|
Let's include that in CONTEXT.md for later references. |
494a6e1 to
9a081cd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't put lxml as external_dependencies. It's already a dependency of Odoo core.
9a081cd to
acd45cc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
with the new default value of demo, demo is not imported by default. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
|
This PR has the |
|
/ocabot merge nobump |
|
On my way to merge this fine PR! |
|
Congratulations, your PR was merged at d8c5d91. Thanks a lot for contributing to OCA. ❤️ |

Migration to 19.0.
Added some code on the tests in order to load demo data.