Attachment Preview & Upload Progress (Many2Many Binary/Attachments)
by Odoovation Technologies https://odoovation.infy.uk/$ 33.08
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 190 |
| Technical Name |
m2m_binary_preview |
| License | OPL-1 |
| Website | https://odoovation.infy.uk/ |
Attachment Preview & Upload Progress
for the Many2Many Binary widget
The stock many2many_binary widget works, but clicking a
thumbnail simply downloads the file, and uploading several files at once
gives no visual feedback. This module fixes both, everywhere the widget is
used in your database - no configuration required.
Supports text, image, video and PDF attachments out of the box.
Key Features
- Click-to-preview text, image, video and PDF files in a full-screen lightbox.
- Upload progress bar showing the current file name while attaching.
-
Applies automatically to every
many2many_binaryfield, in every module, with zero configuration. - Ships with a ready-to-use demo model and menu so you can try it immediately after install.
- Built entirely on standard Odoo APIs (OWL patch + QWeb template inheritance) - no monkey-patched core files.
Screenshots
Uploading - live progress bar with file name
After upload - text, image, video and PDF thumbnails
Preview - click a thumbnail to open the lightbox
How to use it in your own modules
Define a Many2many field to ir.attachment as usual:
attachment_ids = fields.Many2many(
'ir.attachment',
'my_model_attachment_rel',
'record_id', 'attachment_id',
string='Attachments',
)
and add it to your view with the standard widget:
<field name="attachment_ids" widget="many2many_binary"/>
That's it - preview and progress bar are added automatically.
Support
Questions or feature requests? Contact us through the Odoo Apps Store support page for this module, or reach us directly on WhatsApp.
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 190 |
| Technical Name |
m2m_binary_preview |
| License | OPL-1 |
| Website | https://odoovation.infy.uk/ |
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