OdooWiki OCA HUB

URL attachment

document_url folder_open OCA/knowledge open_in_new
Tools License: AGPL-3

Module that allows to attach an URL as a document.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Lets users attach a web link (URL) to any record's chatter, just like a file attachment. The link appears in the attachment list with a link icon and opens in a new tab.

This module adds the ability to attach a web address (URL) as a document to any record that has a chatter, such as a customer, sales order or task.

Where it appears: - In the chatter's attachment area, next to the normal file upload button, a new "Add URL" button is shown. - Clicking it opens a small pop-up window with two fields: a name and the URL. - After confirming, the link is added to the record's attachment list and displayed with a link icon instead of a file preview.

Business behaviour: - If the user types an address without "http://" or "https://", the system automatically adds "http://" in front so the link works. - The link is stored as an attachment of type "url" and its file type is set to "application/link". - Link attachments cannot be downloaded like normal files; they are opened in a new browser tab instead. - Users can delete a link attachment from the list, with a confirmation message. - The "Add URL" button is only active when the user has write access on the record.

Technical areas touched: - Extends ir.attachment to recognise link attachments. - Adds a new wizard model ir.attachment.add_url and its form view. - Patches the chatter and attachment list user interface so links are shown and handled differently from files.

Depends on

mail

Required by other modules

Models and fields (2)
  • ir.attachment · extends an existing model
  • ir.attachment.add_url · new modelurl (URL), name

Text generated by AI (DeepSeek) from reading the Odoo 19.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: 8 confirmed, 1 with no information of 9 versions.

Sources · Odoo 17.0

Confirmed on 2026-11-03 in branch 17.0 of OCA/knowledge.

terminal Installation and usage

OCA documentation · Odoo 19.0

To use this module, you need to:

  • Open the form view of an object (Example: Customer Invoice INV/2019/0007).
  • Go to the chatter and click on the attached icon.
  • Click Add URL link.
  • Fill the wizard fields and click on Add button.
  • You will see a new URL attachment in the set of attachments related to the object.

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.