Availability |
Odoo Online
Odoo.sh
On Premise
|
Lines of code | 478 |
Technical Name |
draggable_m2m_attachment_preview |
License | LGPL-3 |
M2M Attachment Field Widget for Odoo
This M2M Attachment field widget is designed for use in your Odoo application. It allows users to attach multiple files to a record by dragging and dropping them into the field. The selected files are then stored in the field for later use, and users can preview the attachments (img and PDF types) directly within the field.
The widget is linked to a Many2many field connect with ir.attachmentmodel with the widget property set to draggable_m2m_attachment_field.
How the Draggable M2M Attachment Field Works:
-
Define a Many2many field in your Odoo model, linking it to the
ir.attachment
model. -
Add the attribute
widget="draggable_m2m_attachment_field"
to the Many2many field in your form view.

Please log in to comment on this module