Odoo 19 app

Office Preview and Attachment Preview

Click a Word, Excel, PowerPoint, OpenDocument or CSV attachment in the chatter and read it in the standard Odoo viewer - no download, no Office on the PC, no external viewer. Files are rendered on your own Odoo server by a pure-Python engine, so it also works where LibreOffice cannot be installed. Customers can preview attachments in the portal too.

Office Attachment Preview for Odoo 1950+file extensionsextra programs neededautomated testsone-time price

What it does

Office PreviewAttachment PreviewWord Excel PreviewDocx PreviewXlsx PreviewPptx PreviewPowerPoint PreviewCSV PreviewOpenDocument PreviewChatter PreviewBinary Field PreviewPortal PreviewNo LibreOffice NeededSearch in FileSheet TabsSpeaker NotesReal ThumbnailsPreview CacheSize LimitsSanitised Output

Everything needed to read office files without leaving Odoo.

Word (.docx, .docm, .dotx) with headings, bold / italic / colours, bullet and numbered lists, tables with merged cells, pictures and page breaks. Excel (.xlsx, .xlsm, .xls) with number, percent and date formats, fills, merged cells and one tab per sheet. PowerPoint (.pptx, .ppsx, .potx) slide by slide with text, pictures, tables and positions from the slide layout.

OpenDocument text, spreadsheets and presentations (.odt, .ods, .odp), CSV and TSV with automatic delimiter and encoding detection, RTF, e-mail files (.eml with sender, subject, body and the list of attachments), ZIP archives (list of files with size and date), Markdown, logs and code files.

A pure-Python engine built on lxml and xlrd, which every Odoo server already has. Nothing to install, nothing to configure, works on hosted servers. If LibreOffice is installed, it is used for old .doc and .ppt files, and on request for exact page layout as PDF.

Features

Documents are untrustedtext is escaped, pictures are embedded only when they really are PNG / JPEG / GIF / BMP / WEBP, links are not followed, remote pictures are never loaded, and the preview page runs with a strict Content-Security-Policy that blocks every network request and every foreign script.