OdooWiki OCA HUB

Base Binary URL Import

base_binary_url_import folder_open OCA/server-ux open_in_new
Uncategorized License: AGPL-3

This modules provides a wizard that allows mass importation of Binary files from URLs into selected model/field of multiple records.

As the standard CSV import only allows to import Binaries from URLs into image fields, this module provides the possibility to import any kind of Binary such as Texts, PDFs, and anything else.

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

Add a wizard that downloads files from URLs and stores them into any binary field of existing records, for one record or many at once. Useful for mass-loading PDFs, texts or other documents that the standard CSV import cannot handle.

This module adds a new wizard called "Binary Import From URL" available under the Import menu. It lets you pick a target model, the binary field where the file should be stored, and optionally a text field to keep the original file name.

In the wizard you list one line per record: the record identifier (database ID or XML ID) and the URL of the file to download. You can also paste a CSV-like block of "ID,URL" lines and the wizard splits it automatically into separate lines.

When you click Import, the module checks that every identifier exists, that there are no duplicates, and that database IDs and XML IDs do not point to the same record. It then downloads each file and writes it into the chosen field of the matching record, returning a list of the updated records.

Two system parameters control the download: a maximum file size (default 10 MB) and a timeout (default 5 seconds). Files larger than the limit or URLs that fail are rejected with an error message. Access is restricted to users allowed to import remote URLs.

Depends on

basebase_importweb_domain_field

Required by other modules

Menus it adds

ImportBinary Import From URL
Models and fields (2)
  • base.binary.url.import · new modelline_ids, target_model_id, target_binary_field_id, target_binary_field_domain, target_binary_filename_field_id, target_binary_filename_field_domain
  • base.binary.url.import.line · new modelwizard_id, binary_url_to_import (URL to import), target_record_identifier (Target record ID), is_target_record_identifier_required

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

Sources · Odoo 13.0

Confirmed on 2026-11-03 in branch 13.0 of OCA/server-ux.

terminal Installation and usage

OCA documentation · Odoo 16.0

Configuration shouldn't be needed, however you can customize the import using following ir.config_parameter:

  • binary.url.import.max.size: Maximum size (in Bytes) of imported Binaries. (default = 10485760 = 10MB)
  • binary.url.import.timeout: Timeout limit (in seconds) for HTTP requests to get an answer. (default = 5)

The importation wizard will be available in the Settings > Technical menu.

An admin user can select the target model and field of the importation, and select a Char field where to store the file name of the Binary being downloaded.

He can then list record IDs (either using Database ID or XML ID) and the URL of the file to download and write into these records.

To create new records, a standard import can be made without the binary field first, then a CSV like list can be copy pasted into the wizard to allow mass importation without having to upload or list URLs one by one.

No verified information in OCA: Installation.

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.