Office Preview and Attachment Preview - Word Excel Preview, Docx Preview, CSV Preview in Chatter
by Modvanta https://modvantaapps.tech/odoo-apps/office-attachment-preview/
Odoo
$ 8.97
Office Attachment Preview for Odoo 19
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 PreviewAttachment PreviewWord Excel PreviewDocx PreviewXlsx PreviewPptx PreviewPowerPoint PreviewCSV PreviewOpenDocument PreviewChatter PreviewBinary Field PreviewPortal PreviewNo LibreOffice NeededSearch in FileSheet TabsSpeaker NotesReal ThumbnailsPreview CacheSize LimitsSanitised Output50+ file extensions | 0 extra programs needed | 100 automated tests | $9 one-time price |
Standard Odoo only previews PDF, images and video
Every quotation in Word, every price list in Excel and every deck in PowerPoint has to be downloaded and opened in another program, again and again. Portal customers have to download too. This module opens those files right in the Odoo viewer, for your team and for your customers.
Key Features
Everything needed to read office files without leaving Odoo.
WORD, EXCEL, POWERPOINT 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, CSV AND MORE 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. | NO LIBREOFFICE NEEDED 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. |
CHATTER, FIELDS AND PORTAL Works in the chatter of every app, on file fields (an eye button next to the file name) and on attachment lists in forms. Portal customers preview attachments from their quotation or order page, with the standard Odoo access rights. | SEARCH, TABS, PRINT Type a word to highlight every match and jump between them, switch sheets with tabs, read speaker notes under each slide, print what is on screen, close with Escape. | SAFE BY DESIGN Documents are untrusted: text 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. |
FAST WITH A CACHE Each file is rendered once and served from the cache until it changes. Unused previews are purged after the number of days you choose; one button clears the cache. | LIMITS YOU CONTROL Maximum file size, rows and columns per sheet, sheets per workbook and slides per presentation. Huge spreadsheets are read row by row and stop at the limit, so a million-row file stays quick. | REAL THUMBNAILS OpenDocument files, and Office files saved with a preview picture, show their first page on the attachment card instead of a generic icon. |
How it compares
Attachment preview modules on the Odoo Apps Store vs this module.
| Feature | Typical modules | This module |
| Word, Excel and PowerPoint preview | Often download only | Yes, in the viewer |
| OpenDocument (.odt, .ods, .odp), CSV, RTF, e-mail, ZIP | Rare | Yes |
| Works without LibreOffice on the server | Rare | Yes, pure Python |
| Old .doc / .ppt files | Rare | Yes, when LibreOffice is installed |
| Preview in the customer portal | Rare | Yes |
| Preview on file fields and attachment lists | Some, with a widget to add | Yes, no view to change |
| Search inside the file, sheet tabs, speaker notes | Rare | Yes |
| Untrusted content sanitised, no remote requests | Not stated | Yes, tested |
| Cache, size limits, per-format switches | Rare | Yes |
| Price | Typically more | $9 one-time |
How it works
1 | Install the module Nothing else to install. LibreOffice is optional. |
2 | Click an attachment In any chatter, file field or attachment list. Office files now open in the Odoo viewer. |
3 | Read, search, switch sheets Use the search box, the sheet tabs, Print, or the Download button of the viewer. |
4 | Tune it if you want Settings -> General Settings -> Office Attachment Preview: formats, limits, engine, cache, portal. |
Screenshots
Office files in the chatter
A customer sent Word, Excel, PowerPoint and OpenDocument files; the OpenDocument cards show their real first page.

Word preview (.docx)
A quotation with logo, headings, bullet list and item table, read without downloading.

Excel preview (.xlsx) with sheet tabs
Merged title, coloured header, number, percent and date formats, one tab per worksheet.

PowerPoint preview (.pptx)
Each slide at its real layout, with pictures and the speaker notes underneath.

Search inside the file
Type a word: every match is highlighted and the arrows jump between them, across sheets.

OpenDocument spreadsheet (.ods)
The same price list saved as OpenDocument shows the formatted values the office suite displays.

CSV preview
An order export opens as a table with the header row; the delimiter and encoding are detected.

Preview in the customer portal
The customer opens the price list attached to the quotation from the portal, with standard access rights.

Binary field preview
An eye button next to a file field opens the same viewer, here for an OpenDocument text.

Settings
Formats on or off, size limits, rendering engine with a LibreOffice check, display options and the cache.

Frequently asked questions
Do I need LibreOffice or Microsoft Office on the server?
No. Word, Excel, PowerPoint, OpenDocument, CSV, RTF, e-mail and ZIP files are rendered by a pure-Python engine that uses only libraries Odoo itself requires. LibreOffice is used only if it is installed: for old .doc and .ppt files, and for exact page layout as PDF if you choose that engine in the settings.
Are my files sent anywhere?
No. The file is read on your Odoo server and the preview is served from it. No cloud viewer, no public link. The preview page itself is not allowed to load anything from the internet.
Can a user see a file he could not download before?
No. The preview uses the same access rules as the download link: record rules, portal access and access tokens. A portal user only previews attachments he can already open, and portal preview can be switched off.
Does it look exactly like Word or Excel?
It shows the content faithfully - text, formatting, lists, tables, pictures, sheets and slides - but it is a reading view, not a page-exact rendering. Excel shows the values saved in the file (formulas are not recalculated). For page-exact output, install LibreOffice and pick the exact layout engine.
What about very large files?
Above the size limit you set the viewer shows a short message and the Download button. Long sheets, many sheets and long decks are cut at the limits you choose, and the preview says so.
Which apps does it need?
Only Discuss (mail), which every Odoo has. Odoo 19 Community or Enterprise. Uninstalling removes the settings and the cached previews.
Requirements
Odoo 19 Community or Enterprise. No extra Python library, no external service. LibreOffice optional.
Stop downloading every attachment
Questions before buying, or a format you need? Write to us, we answer within one working day.
Buy Now - $9Hire Us for Odoo WorkEMAIL | AUTHOR Modvanta | INCLUDED Free bug fixes and setup help |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 3070 |
| Technical Name |
mdv_office_attachment_preview |
| License | OPL-1 |
| Website | https://modvantaapps.tech/odoo-apps/office-attachment-preview/ |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module