Availability |
Odoo Online
Odoo.sh
On Premise
|
Lines of code | 152 |
Technical Name |
cbu_advance_m2m_binary_widget |
License | LGPL-3 |
Website | https://codebyus.net/ |
Versions | 16.0 18.0 |
Availability |
Odoo Online
Odoo.sh
On Premise
|
Lines of code | 152 |
Technical Name |
cbu_advance_m2m_binary_widget |
License | LGPL-3 |
Website | https://codebyus.net/ |
Versions | 16.0 18.0 |
Advanced Many2many Binary Widget
A widget to handle attachment uploads in many2many fields with granular control over permissions.
Features
- Manage file uploads through Many2many fields
- Control download permissions
- Control delete permissions
- Control preview permissions
- Integrated PDF viewer with restricted functionality
Implementation
This widget is used to manage file uploads in many2many fields with fine-grained control over permissions.
Basic Usage
<field name="attachment_ids" widget="advance_m2m_binary_widget" />
Restrict Download
<field name="attachment_ids" widget="advance_m2m_binary_widget" options="{'download': false}" />
Restrict Delete
<field name="attachment_ids" widget="advance_m2m_binary_widget" options="{'can_remove': false}" />
Confirm Delete
<field name="attachment_ids" widget="advance_m2m_binary_widget" options="{'can_remove': true, 'confirm_remove': true}" />
Restrict Preview
<field name="attachment_ids" widget="advance_m2m_binary_widget" options="{'can_open': false}" />
Full Restriction (download, delete, preview)
<field name="attachment_ids" widget="advance_m2m_binary_widget" options="{'download': false, 'can_remove': false, 'can_open': false}" />
Screenshots
Normal Many2many widget

Delete restricted widget

Download restricted widget

Confirmation widget

View of an opened PDF file

Credits
Role | Name |
---|---|
Author | CodeByUs |
License | LGPL-3.0-or-later |
Icon | Custom-generated (DALL·E + Odoo 18-style) |
Need help?
Contact us for support or implementation assistance.
Please log in to comment on this module