Skip to content

[19.0][ADD] dms_libreoffice_preview: server-side LibreOffice→PDF office preview - #484

Closed
dnplkndll wants to merge 2 commits into
OCA:19.0from
ledoent:19.0-add-dms_libreoffice_preview
Closed

[19.0][ADD] dms_libreoffice_preview: server-side LibreOffice→PDF office preview#484
dnplkndll wants to merge 2 commits into
OCA:19.0from
ledoent:19.0-add-dms_libreoffice_preview

Conversation

@dnplkndll

@dnplkndll dnplkndll commented Jun 19, 2026

Copy link
Copy Markdown

Adds in-browser preview of office files (doc/docx/odt/xls/xlsx/ods/ppt/pptx/odp/rtf) in DMS by registering an office-mimetype handler (score 10) into the dms_preview_pane preview registry: the server converts the file to PDF via LibreOffice (cached as an ir.attachment, keyed on the content checksum, 60s soffice cap). Leaves score 20 free for a future dms_onlyoffice.

Depends on #483 (dms_preview_pane), pinned in test-requirements.txt until it lands — the Detect unreleased dependencies red is that pin. The dms pin is gone now that #475 has merged, and the branch is rebased on 19.0.

Requires the libreoffice deb (external_dependencies). The conversion tests skip themselves when soffice is absent, which it is on the OCA runners; they were run locally against a real LibreOffice to confirm they pass rather than merely skip.

AI-assisted (Claude Code); every change reviewed, tested, and owned by the author.

@OCA-git-bot OCA-git-bot added series:19.0 mod:dms_libreoffice_preview Module dms_libreoffice_preview labels Jun 19, 2026
@dnplkndll
dnplkndll force-pushed the 19.0-add-dms_libreoffice_preview branch 2 times, most recently from b46c7b3 to faf9c3e Compare June 19, 2026 21:26
@dnplkndll
dnplkndll marked this pull request as ready for review June 19, 2026 21:32
@pedrobaeza

Copy link
Copy Markdown
Member

This is covered in a more generic way in OCA/mail#258

@dnplkndll dnplkndll closed this Sep 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:dms_libreoffice_preview Module dms_libreoffice_preview series:19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants