| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 4409 |
| Technical Name |
attachment_file_preview_pyb |
| License | LGPL-3 |
| Website | https://www.pybeans.com |
Attachment & File Preview for Odoo Chatter
Preview and edit files directly inside Odoo no downloads, no switching apps. Supports 15+ formats including XLSX (editable), DOCX, PDF, PPTX, ODF, CSV, JSON, XML, Markdown, images, and video.
Key Features
XLSX Editable Preview
Click any cell to edit, format, and save Excel spreadsheets directly from the chatter. Full toolbar with fonts, colors, alignment, borders, and multi-sheet support.
DOCX Rich Document Preview
Renders Word documents with full layout fidelity tables, images, headers, footers, and styling in read-only mode directly in the browser.
PPTX Slide Preview
Renders PowerPoint slides in a scrollable, zoomable view (50%-200%). Supports OOXML .pptx format with no conversion needed.
ODF Formats ViewerJS Preview
Previews ODT, ODS, ODP and their template variants (OTT, OTS, OTP) and flat formats (FODT, FODS, FODP) via WebODF no plugins required.
PDF & Images
Native PDF viewer with page navigation and zoom. Instant inline preview for PNG, JPG, GIF, WEBP, SVG, and other image formats.
CSV, JSON & XML
CSV renders as a styled, sortable table. JSON and XML are displayed with syntax highlighting and collapsible tree structure for easy reading.
Markdown & Text
Markdown files (.md) are rendered as formatted HTML with headings, lists, code blocks, and tables. Plain text files display cleanly with monospaced font.
Video Preview
MP4 and other browser-supported video formats play inline in the chatter popup no external player or download required.
Binary Field Support
Previews files stored in binary model fields (not just chatter attachments), so document fields on any form open inline with the same experience.
How It Works
Supported File Formats
| Format | Extensions | Mode | Notes |
|---|---|---|---|
| Excel | .xlsx | Editable | Full formatting toolbar, multi-sheet, formulas, save back to attachment |
| Word | .docx | Read-only | Full layout with tables, images, headers & footers |
| PowerPoint | .pptx | Read-only | Scrollable slides, zoom 50%-200% |
| Legacy PowerPoint | .ppt | Read-only | Server-side conversion fallback |
| ODF Text | .odt, .ott, .fodt | Read-only | Rendered via WebODF / ViewerJS |
| ODF Spreadsheet | .ods, .ots, .fods | Read-only | Rendered via WebODF / ViewerJS |
| ODF Presentation | .odp, .otp, .fodp | Read-only | Rendered via WebODF / ViewerJS |
| Read-only | Native browser PDF viewer with page navigation | ||
| Images | .png, .jpg, .gif, .webp, .svg⦠| Read-only | Inline rendered, all browser-native image types |
| Video | .mp4, .webm, .ogg⦠| Read-only | In-browser playback, no external player needed |
| CSV / TSV | .csv, .tsv | Read-only | Rendered as styled, sortable table |
| JSON | .json, .ld+json | Read-only | Syntax-highlighted collapsible tree |
| XML | .xml | Read-only | Syntax-highlighted collapsible tree |
| Markdown | .md, .markdown | Read-only | Rendered as HTML with headings, code blocks, tables |
| Plain Text | .txt | Read-only | Clean monospaced display |
Module Screenshots
Chatter Attachment List
Attachments appear in the chatter as they always do. Click any attachment to open the appropriate viewer or editor no changes to your existing workflow.
XLSX Read-only Preview
Excel files open in a full-featured spreadsheet viewer preserving styles, colors, and multi-sheet layout. Ideal for quick review without editing.
Excel Edit Permission Group
Edit access is controlled by a dedicated security group. Assign the "XLSX Editor" group to users who should be able to modify spreadsheets; others get read-only view.
XLSX Edit Mode
Switch to edit mode to modify cells, apply formatting, and save changes back to the Odoo attachment. Full formatting toolbar with fonts, colors, alignment, and borders.
Excel Edit Audit Log
Every save action is logged in the chatter, capturing who edited the file and when. Full audit trail for compliance and collaboration.
DOCX Word Document Preview
Word documents render with full layout fidelity including tables, embedded images, headings, and footers all inside a clean popup without downloading.
PPTX PowerPoint Slide Preview
Slides render in a scrollable, zoomable view from 50% to 200%. Each slide stacks vertically for easy scrolling through the full presentation.
PPT Legacy PowerPoint Preview
Legacy binary .ppt files (pre-2007 format) are handled via server-side conversion, so older presentations still open inline without requiring the user to download.
ODT OpenDocument Text Preview
ODT and related text formats preview via WebODF, preserving fonts, styles, and layout no LibreOffice server or conversion step required.
ODS OpenDocument Spreadsheet Preview
ODS spreadsheets render with full sheet structure and cell styling via WebODF, supporting the full ODS / FODS / OTS family.
ODP OpenDocument Presentation Preview
ODP presentations display slides inline via WebODF, covering ODP, OTP, and FODP formats.
PDF Preview
PDF files open in the browser's native viewer inside a clean popup with page navigation, zoom, and the option to download.
Image Preview (PNG, JPG, etc.)
All browser-native image formats render inline at full quality. Pan and zoom to inspect details without downloading.
Video Preview (MP4, WebM, etc.)
Video files play directly in the popup using the browser's native video player no plugins, no downloads, no external apps needed.
CSV Preview
CSV and TSV files are parsed and rendered as a styled, sortable table far more readable than raw comma-separated text.
JSON Preview
JSON files display as a syntax-highlighted, collapsible tree so you can inspect complex nested structures without a text editor.
XML Preview
XML files render as a syntax-highlighted, collapsible tree with element, attribute, and text node highlighting for quick navigation.
Markdown Preview
Markdown files are rendered as formatted HTML with proper headings, lists, code blocks, inline code, tables, and blockquotes.
Plain Text Preview
Plain text files display in a clean monospaced view, preserving whitespace and line breaks perfect for log files, scripts, and notes.
Binary Field Preview
Files stored in binary model fields (not just chatter attachments) also get the inline preview treatment. Any form with a binary/Many2many file field benefits automatically.
Technical Details
OWL / Odoo 19 Native
Built entirely on OWL components, patching Odoo's AttachmentList and Attachment model cleanly no hacks, no overrides of base views.
Permission-Controlled Editing
XLSX edit mode is gated behind a dedicated security group. Users without the group see read-only preview; no accidental edits possible.
Audit Trail for XLSX Edits
Every save of an edited spreadsheet is recorded in the chatter log with user and timestamp full traceability for compliance.
Auto Format Detection
Format is detected by MIME type first, then file extension as fallback works reliably even for attachments uploaded without proper MIME headers.
Responsive on All Devices
Preview dialogs are responsive and work on desktops, tablets, and mobile browsers. Chrome, Firefox and Edge are all supported.
Always Downloadable
Every preview dialog includes a Download button so users can always save the original file locally preview never replaces download access.
Business Benefits
Perfect for:
- Finance teams reviewing Excel reports and invoices without opening Excel
- Sales teams previewing proposals and contracts stored as DOCX attachments
- HR teams viewing employee documents and forms inline
- Project managers checking data exports in CSV or JSON format
- Technical teams inspecting XML and JSON config files directly in Odoo
- Any team sharing documents through the Odoo chatter
Custom Development & Version Support
Need This Module for a Different Odoo Version?
We can adapt this module for any Odoo version you need.
Want Custom Features or Modifications?
We provide custom development services to enhance or modify this module for your specific requirements.
What We Can Do:
- Port to any Odoo version (14, 15, 16, 17, 18, 19+)
- Add editable mode for DOCX or PPTX
- Add new format support (e.g. DXF, SVG editor)
- Custom viewer themes and branding
- Integration with document management modules
- Bulk preview from list views
- Version history and diff viewer
- E-signature integration
Quick Turnaround:
- Fast development cycles
- Regular progress updates
- Quality assurance testing
- Documentation included
- Training and support
- Competitive pricing
- Ongoing maintenance available
- Source code provided
devpybeans@gmail.com
Support & Warranty
90 Days FREE Support Included!
We provide 90 days of completely FREE support after module installation.
Bug Fixes
Free bug fixes and issue resolution for 90 days
Technical Support
Installation help and configuration assistance
Usage Guidance
Best practices and usage recommendations
Support Period: Starts from the date of module installation
Response Time: Within 24-48 hours on business days
Support Channels: Email, Contact Form, and Direct Communication
Contact Information
Ready to eliminate unnecessary downloads and streamline file review in Odoo? Get in touch!
Website Contact
www.pybeans.com
Contact Form
Developed by PyBeans Enhancing Odoo for better business solutions.
Please log in to comment on this module