OdooWiki OCA HUB

Drop target support

web_drop_target folder_open OCA/web open_in_new
Usability License: LGPL-3

This module is meant as a base drag&drop module supporting other actions after some file is dropped so that other modules can add more features.

auto_awesome What this module does

AI-generated from the code · Odoo 15.0

Lets users drag files from their computer straight into Odoo form views, where the files are saved as attachments on the record being viewed.

This module adds drag-and-drop file support to Odoo's backend interface. When a user drags a file over a form view, a visual overlay appears showing where the file can be dropped.

  • In form views, users can drop any type of file onto the form area. The file is uploaded and stored as an attachment linked to the record currently open.
  • If the record has not been saved yet, the overlay warns the user to save the record before dropping a file.
  • After a successful drop, the form reloads so the new attachment appears in the chatter.

The module works by extending the standard form controller with a reusable drop-target behaviour. It listens for drag and drop events on the page body, shows an overlay only when the pointer is over the form, and hides it when the pointer leaves the window.

Technically, the uploaded file is created as an ir.attachment record with the file name, binary data, and a link to the current model and record. The module does not add any menus, database models, or server-side business rules of its own; it is a base layer meant to be reused by other modules that want to handle dropped files in different ways.

Depends on

web

Text generated by AI (DeepSeek) from reading the Odoo 15.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 4 confirmed, 5 with no information of 9 versions.

terminal Installation and usage

OCA documentation · Odoo 15.0

To use this module, you need to:

  • drag a file from your local computer onto an Odoo form view
  • it should become an attachment of the currently opened record

No verified information in OCA: Installation, Configuration.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.