Skip to content

[19.0][MIG] storage_backend_sftp: Migration to 19.0 - #3

Open
alan196 wants to merge 9 commits into
19.0from
19.0-mig-storage_backend_sftp
Open

[19.0][MIG] storage_backend_sftp: Migration to 19.0#3
alan196 wants to merge 9 commits into
19.0from
19.0-mig-storage_backend_sftp

Conversation

@alan196

@alan196 alan196 commented Jul 30, 2026

Copy link
Copy Markdown

Migration of storage_backend_sftp to 19.0.

Stacked on PR #2 ([19.0][MIG] storage_backend: Migration to 19.0) — this branch is based on 19.0-mig-storage_backend and includes its commit. Merge #2 first; after that, this PR will only show the sftp commits.

Commits on top of #2:

  • [MIG] storage_backend_sftp: Migration to 19.0 — cherry-picked from OCA PR [MIG] storage_backend_sftp: Migration to 19.0 OCA/storage#644 (author @AungKoKoLin1997 / Quartile): makes the module installable again (19.0.1.0.0), moves paramiko to a plain import, adds it to requirements.txt and fixes the move_files test.
  • [FIX] storage_backend_sftp: ensure the conection is closed when move, get and add — forward-port of the Jarsa 17.0 fix (0c925fd): robust sftp() context manager (try/finally closing client and transport) and with blocks for remote file handles.
  • [REF] storage_backend_sftp: Fix pylint checks — no-else-return and consider-using-with fixes required by pre-commit-vauxoo mandatory checks.

Tested: pre-commit-vauxoo -p storage_backend_sftp Mandatory/Optional = Passed; install + tests on a scratch 19.0 DB: 7 tests, 0 failed, 0 error (all tests mock paramiko, no real SFTP server required).

Note for reviewers: the Jarsa 17.0 commit [IMP] storage_backend: add active field to view (1e074f2) is NOT included in the storage_backend 19.0 migration (PR #2) — the active field no longer exists on storage.backend in the 18.0-based code. Review whether it must be re-added in #2.

🤖 Generated with Claude Code

simahawk and others added 9 commits July 30, 2026 17:26
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/
…er-using-with)

Required by Jarsa pre-commit-vauxoo mandatory checks.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@jarsabot

Copy link
Copy Markdown
    **WARNING**: Could not link to Odoo task. Record ID not found in the title of the MR, supported formats:
{ record type }#{ number }

Available types: 'task#', 't#' (case insensitive)

Examples:

  • task#123

  • i#123

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants