Skip to main content
Odoo Community Association

Mail Attachment XML Preview

Beta License: AGPL-3 OCA/mail Translate me on Weblate Try me on Runboat

Preview XML attachments as a collapsible tree instead of a wall of text.

Odoo stores XML attachments with the text/plain mimetype for any user without write access on views, so the standard file viewer renders them as raw text. Machine-generated XML (electronic invoices such as CFDI or UBL, bank statements, EDI messages) usually comes in a single line, which makes that preview unreadable.

This module renders XML attachments with their hierarchy: indented nodes, highlighted tags, attributes and values, and every branch can be collapsed or expanded. Everything happens in the browser, no conversion service and no extra software on the server.

Table of contents

Usage

  1. Attach an XML file to any record with a chatter, or send it in a message.

  2. Click on the attachment thumbnail.

  3. The file opens in the standard Odoo file viewer as a tree. Click a node to collapse or expand it.

Files that are not well-formed XML (or bigger than 5 MB) fall back to the raw text preview.

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

  • Jarsa

Contributors

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/mail project on GitHub.

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

Release files for odoo-addon-mail-attachment-xml-preview 17.0.1.0.0.4

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-mail-attachment-xml-preview 17.0.1.0.0.4
File Interpreter ABI Platform
odoo_addon_mail_attachment_xml_preview-17.0.1.0.0.4-py3-none-any.whl Python 3 none any Details

Release files / odoo_addon_mail_attachment_xml_preview-17.0.1.0.0.4-py3-none-any.whl

Download URL odoo_addon_mail_attachment_xml_preview-17.0.1.0.0.4-py3-none-any.whl
Size 30.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1093c1eb56c6521c87ac783b6c8f416f902ae47878cfba516d3be7a51ca3cac1
BLAKE2b-256 checksum
How to use checksums
f359d315f440ae9b0ef2c2078ad251b130b6555f6e4dc5c3fa90e60a59ef2b7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release history Release notifications | RSS feed

This release

17.0.1.0.0.4 This release

1 release file

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