v 13.0 Third Party 29
Lines of code 309
Technical Name ir_attachment_url
Also available in version v 14.0 v 12.0 v 9.0 v 10.0 v 11.0
You bought this module and need support? Click here!

Attachment Url

Use attachment URL and upload data to external storage

Version: v13.

Tested and maintained by
IT Projects Labs
Assitance: apps@itpp.dev

The module allows to use url in Binary fields (e.g. in product images). It provides the possibility for uploading files to external storage (ftp, s3, some web server, etc) and uses url instead of transfer binary data between odoo server and client that, in turn, allows to reduce the load on server.
E.g., for uploading files to S3 you can use our module ir_attachment_s3: https://apps.odoo.com/apps/modules/11.0/ir_attachment_s3/

How it works

As an example go to Sales → Products menu and open or create new item. Upload any image to the product.


  • Go to Settings → Database Structure → Attachments menu.
  • Add custom filter: Resource Field is set
  • Switch to list view and open the created attachment items: image_small, image_medium, image

In the form that appears change 'Type' to URL and set url in the 'Url' field. As a result you can see related image in your product.

Attachment Url


  • Install this module in a usual way


  • Set an avatar for the current user
  • Log in as superuser
  • Go to Settings >> Technical >> Database Structure >> Attachments
  • Below "Search" field click Filters >> Add custom filter >> "Resource field" "is equal to" "image_128"
  • Scroll down and find the avatar you have set. Click on it.
  • Click on "Edit"
  • To URL field paste url to any picture on external resource
  • Click on "Save" and reload the page
  • RESULT: you will see that the avatar of the user has been changed to that pasted picture

ir_attachment_url_fields context

In order to store urls instead of binary data in binary fields, you can use ir_attachment_url_fields context. For example, you need to create res.country record which has image fields, defined as Binary field. To store url to image field you need to define context ir_attachment_url_fields=res.country.image and set value of the field. See test cases as detailed examples.

In order to store multiple fields as urls, define context like this ir_attachment_url_fields=model.name.field1,another.model.name,field2.

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.
There are no ratings yet!
Se Almacena en el filstore?
Gustavo Hinojosa
on 8/11/20, 9:41 AM

Este modulo me permite utilizar url para poder utilizar la imagen? entonces no se almacena en el filestore? por favor algún demo. Estoy interesado en adquirir el modulo gracias.

Re: Se Almacena en el filstore?
Elizaryev Ivan Nikolaevich
on 8/24/20, 10:26 AM Author

Yes, the module allows you to use files inside Odoo by link, including images while not using the internal storage of the Odoo at all. Also we have the module for work with AWS S3  which depends on it. With this module after a simple setup you will be able to transfer all attachments or certain parts by domain from internal Odoo storage to S3 bucket.

For a demonstration, please contact us by E-mail: apps@itpp.dev