Mail Attachment XML Preview
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
Attach an XML file to any record with a chatter, or send it in a message.
Click on the attachment thumbnail.
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
Contributors
Jesús Alan Ramos Rodríguez <alan.ramos@jarsa.com>
Maintainers
This module is maintained by the OCA.
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.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| odoo_addon_mail_attachment_xml_preview-17.0.1.0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Release files / odoo_addon_mail_attachment_xml_preview-17.0.1.0.0.3-py3-none-any.whl
| Download URL | odoo_addon_mail_attachment_xml_preview-17.0.1.0.0.3-py3-none-any.whl |
|---|---|
| Size | 30.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
44021d4d77e97d71087c4737c598da9744a27442f4fe167cc3eb78ac9ee0a7cc
|
|
BLAKE2b-256 checksum How to use checksums |
a0729667cd03b4860bdbe828e6e47c99d6a9925e8ba2b2f1aad102ec5ce0eea3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|