Skip to main content
Odoo Community Association

XML Reports

Production/Stable License: AGPL-3 OCA/reporting-engine Translate me on Weblate Try me on Runboat

This module was written to extend the functionality of the reporting engine to support XML reports and allow modules to generate them by code or by QWeb templates.

Table of contents

Use Cases / Context

We create this module to allow the system to generate and download XMLs as reports.

Otherwise, the system can generate XMLs, but will be downloaded as HTML or PDF.

Installation

To install this module, you need to:

But this module does nothing for the end user by itself, so if you have it installed it’s probably because there is another module that depends on it.

Usage

This module is intended as a base engine for other modules to use it, so no direct result if you are a user.

If you are a developer

To learn from an example, just check the demo report on GitHub for the model res.company or check it in interface from companies views.

To develop with this module, you need to:

  • Create a module.

  • Make it depend on this one.

  • Follow instructions to create reports having in mind that the report_type field in your ir.actions.report record must be qweb-xml.

In case you want to create a custom report, the instructions remain the same as for HTML reports, and the method that you must override is also called _get_report_values, even when this time you are creating a XML report.

You can make your custom report inherit report.report_xml.abstract, name it in such way report.<module.report_name>. Also you can add a XSD file for report validation into xsd_schema field of your report (check report definition) and have XSD automatic checking for free.

You can customize rendering process and validation way via changing logic of generate_report and validate_report methods in your report class.

You can visit http://<server-address>/report/xml/<module.report_name>/<ids> to see your XML report online as a web page.

For further information, please visit:

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • Tecnativa

  • Avoin.Systems

Contributors

Other credits

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

This module is part of the OCA/reporting-engine project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

Metadata

Release files for odoo-addon-report-xml 19.0.1.0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for odoo-addon-report-xml 19.0.1.0.1.1
File Interpreter ABI Platform Actions
odoo_addon_report_xml-19.0.1.0.1.1-py3-none-any.whl Python 3 none any Details for odoo_addon_report_xml-19.0.1.0.1.1-py3-none-any.whl

Release files / odoo_addon_report_xml-19.0.1.0.1.1-py3-none-any.whl

Download URL odoo_addon_report_xml-19.0.1.0.1.1-py3-none-any.whl
Size 127.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cb47c20e5b353a90469165d8827cb4c2ffd4f341497184351b3ad66a0cda644f
BLAKE2b-256 checksum
How to use checksums
2423868b56f6bc3994afe780aa46d1be8211ccf4154395819eefd54d7bd510de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for odoo-addon-report-xml 19.0.1.0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page