Repository
OCA/storage · module folder · Try on Runboat
Module version
1.1.0
Category
Storage
Folder size
0.04 MB
License
LGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/storage
Last tracking update
2026-08-07 08:42:56
Authors
Camptocamp, Odoo Community Association (OCA)
Maintainers
Camptocamp, Odoo Community Association (OCA)
Committers
Simone Orsi, Weblate, OCA-git-bot, oca-ci
Odoo dependencies
OCA/connector:
OCA/queue:
OCA/server-env:
OCA/storage:
odoo/odoo:
- web
- bus
Python dependencies
python_slugify, cachetools, requests
System dependencies
None
Required by
None
Description
This module integrates `storage_file` with `queue_job` to delegate the
backend swap operation to asynchronous jobs.

When swapping files between storage backends via the wizard, the
operation is split into batches and dispatched as queue jobs instead of
running synchronously. This avoids timeouts when moving large numbers of
files.

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
storage_backend_view_form storage.backend form Inherits storage_file.storage_backend_view_form
storage_file_swap_backend_view_form storage.file.swap.backend form Inherits storage_file.storage_file_swap_backend_view_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (3)

New fields (1)
  • swap_backend_use_queue Boolean
    default=False help='When enabled, swapping files to/from this backend will be dispatched as asynchronous queue jobs instead of running synchronously.' string='Use Queue for Backend Swap'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • use_queue Boolean
    related='source_backend_id.swap_backend_use_queue' string='Use Queue Jobs'
Public methods (0)

No public methods.