Skip to content

[18.0][IMP] storage_image_product: drop server_environment dependency - #700

Open
simahawk wants to merge 2 commits into
OCA:18.0from
camptocamp:18-storage_image_product-server-env
Open

simahawk wants to merge 2 commits into
OCA:18.0from
camptocamp:18-storage_image_product-server-env

Conversation

@simahawk

@simahawk simahawk commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

image.tag in storage_image_product inherits server.env.techname.mixin but the module does not depend on server_environment: it only works if something else installs it.

Moreover, image.tag defines no server env fields: the configuration has no effect unless another module adds some. The dependency only brings tech_name.

Changes:

  • storage_image_product: tech_name (unique) is defined directly on image.tag, no server environment features.
  • New storage_image_product_server_env (not auto-installable): adds server.env.mixin to image.tag, using tech_name for the section name ([image_tag.<tech_name>]). It only keeps modules adding server env fields to image.tag working during the transition, and is meant to be abandoned.
  • Pre-migration in storage_image_product (18.0.1.4.0): if the server environment configuration has an image_tag or image_tag.* section, storage_image_product_server_env is installed in the same upgrade, so server_env_defaults is kept.

NOTE: the server env part is useful ONLY if someone implemented _server_env_fields in a custom module.

Closes #699

Glue module providing server environment features for image tags,
keyed by their technical name.

image.tag defines no server env fields, so the configuration has no
effect unless another module adds some. This module only keeps such
extensions working while transitioning, and is meant to be abandoned.
image.tag inherited server.env.techname.mixin without depending on
server_environment. The technical name is now defined directly on the
model, server environment features are moved to
storage_image_product_server_env.

A pre-migration step installs storage_image_product_server_env when the
server environment configuration contains image_tag sections.
@simahawk
simahawk force-pushed the 18-storage_image_product-server-env branch from fcdc6fd to 3d6d397 Compare November 20, 2026 10:50
@hparfr

hparfr commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

It looks like the intentent was not to have server_env managed field but just have a "tech_name": https://github.com/OCA/storage/pull/83/changes

So no need to add the glue module.

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

Labels

mod:storage_image_product_server_env Module storage_image_product_server_env mod:storage_image_product Module storage_image_product series:18.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants