Skip to content

[19.0][MIG] storage_backend - #636

Open
glitchov wants to merge 6 commits into
OCA:19.0from
acsone:19.0-mig-storage_backend-hda
Open

glitchov wants to merge 6 commits into
OCA:19.0from
acsone:19.0-mig-storage_backend-hda

Conversation

@glitchov

@glitchov glitchov commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Migration from 18.0

simahawk and others added 5 commits July 2, 2026 08:25
A way to classify storages in a functional way.
For instance: you might have N storage backends for the shop,
N storage backends for data import, N storage backends for EDI purposes.

With this change you can finally organize them
and let your customers understand what such storages do.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: storage-18.0/storage-18.0-storage_backend
Translate-URL: https://translation.odoo-community.org/projects/storage-18-0/storage-18-0-storage_backend/
Currently translated at 100.0% (28 of 28 strings)

Translation: storage-18.0/storage-18.0-storage_backend
Translate-URL: https://translation.odoo-community.org/projects/storage-18-0/storage-18-0-storage_backend/it/
@glitchov
glitchov changed the base branch from 18.0 to 19.0 July 2, 2026 07:35
@glitchov
glitchov force-pushed the 19.0-mig-storage_backend-hda branch from 48ca32e to 01f9314 Compare July 2, 2026 07:37
@glitchov
glitchov force-pushed the 19.0-mig-storage_backend-hda branch from 01f9314 to 8e32b91 Compare July 2, 2026 07:52
@glitchov
glitchov force-pushed the 19.0-mig-storage_backend-hda branch from 8e32b91 to 4c80503 Compare July 2, 2026 08:26
Comment on lines +63 to +68
categ_id = fields.Many2one(
"storage.backend.category",
string="Category",
ondelete="restrict",
help="Category to group backends for swapping operations",
)

@FrancoMaxime FrancoMaxime Jul 6, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this addition? Is it related to another PR?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ooh, I just looked at the commits, my bad

@FrancoMaxime FrancoMaxime left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM: code review

@AungKoKoLin1997 AungKoKoLin1997 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lmignon

lmignon commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

@FrancoMaxime, @glitchov Is there a specific reason you're still using storage_backend instead of fs_storage? The latter provides the same functionality in a more efficient way while supporting a wider range of storage protocols.

AungKoKoLin1997 added a commit to qrtl/ocj-oca that referenced this pull request Sep 16, 2026
…_source_sftp and deps

Vendors nine OCA modules so that `connector_importer_source_sftp` — importing
CSV files pulled from an SFTP server through the queue-job importer — can be
installed on this project.

| Module | Source | Commit |
|---|---|---|
| `component` | `OCA/connector` `19.0` | `cce7654` |
| `component_event` | `OCA/connector` `19.0` | `cce7654` |
| `connector` | `OCA/connector` `19.0` | `cce7654` |
| `queue_job` | `OCA/queue` `19.0` | `bc1d885` |
| `connector_importer` | `OCA/connector-interfaces` `19.0` | `e2d3adf` |
| `server_environment` | `OCA/server-env` [#278](OCA/server-env#278) (open) | `8f9c9aa` |
| `storage_backend` | `OCA/storage` [#636](OCA/storage#636) (open) | `4c80503` |
| `storage_backend_sftp` | `OCA/storage` [#644](OCA/storage#644) (open) | `28e6c0f` |
| `connector_importer_source_sftp` | `OCA/connector-interfaces` [#186](OCA/connector-interfaces#186) (open) | `46a0555` |

Only the four modules taken from open pull requests are the ones actually
wanted; the other five are their transitive dependencies and are not otherwise
reachable from this project's addons path, since ocj aggregates no upstream OCA
repositories. Those five are already on their upstream `19.0` branches, so
those copies are redundant with upstream and can be retired if the repositories
are ever aggregated directly.

`storage_backend` and `storage_backend_sftp` do exist on `OCA/storage` `19.0`,
but only as unported 18.0 placeholders with `installable: False`; the migrated
versions live in #636 and #644. #644 is stacked conceptually on #636 — its own
branch still carries the unported `storage_backend` — so the two are combined
here. `server_environment` is taken from #278 rather than the `19.0` branch
because `server_env_mixin` there gains search support for environment-computed
fields; the rest of the module is identical to `19.0`.

All nine trees are copied verbatim from the commits above; the only local change
is the regenerated `requirements.txt`. Every source is an open PR head or a
branch tip that can still move, so each origin is recorded below as a
`Vendored from <repo>@<sha> (<ref>)` line for a later re-sync.

Vendored from OCA/connector@cce7654 (19.0)
Vendored from OCA/queue@bc1d885 (19.0)
Vendored from OCA/connector-interfaces@e2d3adf (19.0)
Vendored from OCA/server-env@8f9c9aa (refs/pull/278/head)
Vendored from OCA/storage@4c80503 (refs/pull/636/head)
Vendored from OCA/storage@28e6c0f (refs/pull/644/head)
Vendored from OCA/connector-interfaces@46a0555 (refs/pull/186/head)

Assisted-by: Claude Opus 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants