OdooWiki OCA HUB

Dms Attachment Link

dms_attachment_link folder_open OCA/dms open_in_new
Document Management License: AGPL-3

This module adds a wizard to be able to link an DMS file as an attachment of a document.

auto_awesome What this module does

AI-generated from the code · Odoo 17.0

Lets users attach an existing DMS file to any Odoo record directly from the chatter, without uploading a copy. The attachment stays linked to the DMS file and shows its content.

This module adds a way to reuse files already stored in the Documents (DMS) app as attachments on other Odoo records, such as a sales order or a contact.

In the chatter of any record, a new "Add DMS File" button appears next to the normal upload button. Clicking it opens a pop-up window showing DMS files in a kanban view. Each file card has an "Add" button. Pressing it creates an attachment on the record you were viewing and links it to the chosen DMS file.

Behind the scenes, the attachment stores a reference to the DMS file (dms_file_id). When the attachment is downloaded or previewed, Odoo reads the content directly from the DMS file, so the two stay in sync. The pop-up is configured so users cannot create new DMS files from it; they can only pick existing ones.

The module touches the dms.file and ir.attachment models and adds a small change to the chatter interface. It does not add new menus, but it adds a button inside the chatter and a selection wizard for DMS files.

Depends on

Models and fields (2)
  • dms.file · extends an existing model
  • ir.attachment · extends an existing modeldms_file_id

Text generated by AI (DeepSeek) from reading the Odoo 17.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 17.0

To use this module, you need to:

  • Open the form view of a document (Example: the contact "Azure Interior").
  • Go to the chatter and click on the clip icon.
  • Click Add DMS File link.
  • A popup wizard will appear.
  • Search for the desired DMS file (Example: Sydney.jpg) and click on the "Add" button.
  • A new attachment will be created for the document without duplicating the content.

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.