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.
auto_awesome What this module does
AI-generated from the code · Odoo 17.0When you open an XML attachment in Odoo (like an electronic invoice or bank statement), it is now shown as an indented, collapsible tree instead of a single line of raw text.
This module changes how XML files are previewed inside Odoo's attachment viewer. Normally, XML attachments are stored as plain text, so the viewer shows them as one long, unreadable line. With this module, any attachment whose file name ends in .xml or whose type is XML is detected and displayed with a structured tree view.
In the tree, each tag is shown with its attributes and values, and branches can be collapsed or expanded by clicking on them. Comments and text content are also displayed. If the file is too large (over 5 MB) or cannot be parsed as valid XML, the viewer falls back to showing the raw text.
The module works entirely in the browser, so no server-side conversion is needed. It adds no new menus or database models; it only enhances the existing file viewer used when you click on an attachment in Odoo (for example, in the chatter or the attachment list).
The changes apply to all XML attachments, including machine-generated files such as electronic invoices (CFDI, UBL), bank statements, and EDI messages, making them much easier to read and inspect.
Depends on
Text generated by AI (DeepSeek) from reading the Odoo 17.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub
Availability by version
Reviewed: 2026-11-03Confirmation status: 1 confirmed, 8 with no information of 9 versions.
Sources · Odoo 17.0
Confirmed on 2026-11-03 in branch 17.0 of OCA/mail.
terminal Installation and usage
OCA documentation · Odoo 17.0Usage
Source · Odoo 17.0- 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.
No verified information in OCA: Installation, Configuration.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.