Skip to content

[ADD] attachment_preview_xml: preview XML attachments as a tree task#32346 - #2

Merged
alan196 merged 1 commit into
Jarsa:17.0from
Jarsa-dev:17.0-add-attachment_preview_xml
Aug 24, 2026
Merged

[ADD] attachment_preview_xml: preview XML attachments as a tree task#32346#2
alan196 merged 1 commit into
Jarsa:17.0from
Jarsa-dev:17.0-add-attachment_preview_xml

Conversation

@alan196

@alan196 alan196 commented Aug 24, 2026

Copy link
Copy Markdown

Odoo stores XML attachments as text/plain for users without write access on views, so the standard viewer renders them as raw text. Machine-generated XML (CFDI, UBL, EDI) comes in a single line, which makes that preview unreadable.

Render XML attachments client-side as an indented, collapsible tree with highlighted tags, attributes and values. No server-side conversion and no extra software involved. Malformed or oversized files fall back to raw text.

Claude-Session: https://claude.ai/code/session_01NYJ2yGZfDKKKEW3KxuG2wh

Odoo stores XML attachments as text/plain for users without write access on
views, so the standard viewer renders them as raw text. Machine-generated XML
(CFDI, UBL, EDI) comes in a single line, which makes that preview unreadable.

Render XML attachments client-side as an indented, collapsible tree with
highlighted tags, attributes and values. No server-side conversion and no
extra software involved. Malformed or oversized files fall back to raw text.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NYJ2yGZfDKKKEW3KxuG2wh
@jarsabot

Copy link
Copy Markdown

Linked to Odoo task #32346

@alan196
alan196 merged commit 4925fe5 into Jarsa:17.0 Aug 24, 2026
4 checks passed
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (17.0@8d19a8d). Learn more about missing BASE report.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##             17.0       #2   +/-   ##
=======================================
  Coverage        ?   92.97%           
=======================================
  Files           ?       98           
  Lines           ?     1410           
  Branches        ?      101           
=======================================
  Hits            ?     1311           
  Misses          ?       77           
  Partials        ?       22           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@alan196
alan196 deleted the 17.0-add-attachment_preview_xml branch August 25, 2026 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants