Widget o2m Attachment Image Gallery Widget
This module allows you to set up an image gallery in a view (such as a Kanban view).
auto_awesome What this module does
AI-generated from the code · Odoo 18.0Adds a new field widget that shows the images attached to a record as a small gallery, with the first image displayed as a clickable preview that opens the full image viewer.
This module adds a new field widget called o2m_attachment_image_gallery that can be used on one-to-many attachment fields in Odoo views, including Kanban views.
When a record has attachments, the widget loads them and displays the first image as a preview (up to 180 pixels high, cropped to fill the width). Clicking that preview opens Odoo's built-in file viewer, where the user can browse through all the attached images.
- The widget reads the attachment records linked to the current record and collects their name and file type.
- If the record has no attachments, nothing is shown.
- The preview image is loaded from the standard Odoo image route for attachments.
- Clicking the preview opens the file viewer starting at the first image, with all attachments available to scroll through.
The module only depends on the web module and does not add any new database models, menus, reports, or automated business rules. It is purely a display component: it changes how attachment images appear in a form or Kanban view, without changing any stored data. It is registered in the fields registry under the name o2m_attachment_image_gallery, so developers can assign it to a field in a view definition.
Depends on
Text generated by AI (DeepSeek) from reading the Odoo 18.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub
Availability by version
Reviewed: 2026-11-03Confirmation status: 1 confirmed, 8 with no information of 9 versions.
Sources · Odoo 18.0
Confirmed on 2026-11-03 in branch 18.0 of OCA/web.
terminal Installation and usage
OCA documentation · Odoo 18.0Usage
Source · Odoo 18.0Example:
<field name="attachment_ids" widget="o2m_attachment_image_gallery" class="ms-auto"/>No verified information in OCA: Installation, Configuration.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.