Availability |
Odoo Online
Odoo.sh
On Premise
|
Lines of code | 235 |
Technical Name |
legion_drag_and_drop_binary_field |
License | OPL-1 |
Drag-and-Drop & Copy-Paste Image Widget for Odoo
This module enhances Odoo by allowing users to drag and drop or copy-paste images into binary fields easily.
Module Features
- Drag and drop images directly into fields.
- Copy and paste images from the clipboard.
- Works on any binary field in Odoo.
- Supports JPG, PNG, and other standard image formats.
Installation & Usage
1. Install the module from the Odoo App Store.
2. Apply our custom widget to the image field in the form view.
3. Either drag and drop an image or copy and paste it.
4. Save the record to apply changes.
Screenshots
In the image below we have share how you can use this widget in views

Python Code of image field and ir.attachment field
.jpg?39185e7)
XML Code of image field and ir.attachment field
.png?39185e7)
Copy a random image from google or you can select even from your computer

Activate debug mode and go on contact form view click on debug button and choose edit view form

image_1920 default widget="image" replace it with our custom widget widget="darg_drop_and_paste_image" and click on "Save" button

Press Ctrl + V to paste the image or drag and drop the image here

Click Send By Email Button in Sale Order Form view.
.png?39185e7)
Click on Debug Button
.png?39185e7)
click on edit form view button
.png?39185e7)
attachmet_ids field widget is "many2many_binary" with "many2many_binary_extended"
.png?39185e7)
Click on save button
.png?39185e7)
Press Ctrl + V button or drag the file and drop on attachment icon then you will see the files here
.png?39185e7)
Technical Specifications
- Odoo Version: 17, 18
- Compatible with Community & Enterprise
- Dependencies: None
- License: OPL-1
Support
For support or custom development, contact us at: support@legionsoft.com
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