Skip to Content
Menu

Drag And Drop Binary Field Widget

by
Odoo

16.45

v 17.0 Third Party
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 235
Technical Name legion_drag_and_drop_binary_field
LicenseOPL-1
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 235
Technical Name legion_drag_and_drop_binary_field
LicenseOPL-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

Drag and Drop Example

Python Code of image field and ir.attachment field

Drag and Drop Example

XML Code of image field and ir.attachment field

Drag and Drop Example

Copy a random image from google or you can select even from your computer

Copy-Paste Example

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

Copy-Paste Example

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

Copy-Paste Example

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

Copy-Paste Example

Click Send By Email Button in Sale Order Form view.

Drag and Drop Example

Click on Debug Button

Drag and Drop Example

click on edit form view button

Drag and Drop Example

attachmet_ids field widget is "many2many_binary" with "many2many_binary_extended"

Drag and Drop Example

Click on save button

Drag and Drop Example

Press Ctrl + V button or drag the file and drop on attachment icon then you will see the files here

Drag and Drop Example

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

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.