Skip to main content

Alpha License: AGPL-3 OCA/server-ux Translate me on Weblate Try me on Runboat

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.

Table of contents

Configuration

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)

Usage

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.

Known issues / Roadmap

  • No check is done on the target records if the target field is not empty.

  • Target records can not be created and must be created first before being able to import Binaries from URL on it.

  • Restriction of models to be selected could be improved

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • Camptocamp

Contributors

Other credits

The migration of this module from 13.0 to 16.0 was financially supported by Camptocamp

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

This module is part of the OCA/server-ux project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

Release files for odoo-addon-base-binary-url-import 16.0.1.0.0.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for odoo-addon-base-binary-url-import 16.0.1.0.0.11
File Interpreter ABI Platform
odoo_addon_base_binary_url_import-16.0.1.0.0.11-py3-none-any.whl Python 3 none any Details

Release files / odoo_addon_base_binary_url_import-16.0.1.0.0.11-py3-none-any.whl

Download URL odoo_addon_base_binary_url_import-16.0.1.0.0.11-py3-none-any.whl
Size 36.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
48b35e868cb1dbb5ca47710355e6533f079bb82bfd1e1eb9230d269993c35c54
BLAKE2b-256 checksum
How to use checksums
1d8b745ae4a9135de7ff4349782c6d4da5f8b7ec44d078e19e726fe37b8abaf5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

16.0.1.0.0.11 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page