Skip to content

[FIX] storage_image_product: add missing server_environment dependency - #699

Closed
FranzPoize wants to merge 1 commit into
OCA:18.0from
akretion:18.0-storage_image_product_server_env_dependency
Closed

FranzPoize wants to merge 1 commit into
OCA:18.0from
akretion:18.0-storage_image_product_server_env_dependency

Conversation

@FranzPoize

Copy link
Copy Markdown

the model image.tag inherits server.env.techname.mixin which is in the server_environment module and no module in the dependency chain of storage_image_product inherits from this module.

@oca-cla-bot

oca-cla-bot Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

@OCA-git-bot OCA-git-bot added series:18.0 mod:storage_image_product Module storage_image_product labels Nov 19, 2026
@FranzPoize
FranzPoize marked this pull request as ready for review November 19, 2026 12:05

@simahawk simahawk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hmm are you sure?

#582

@FranzPoize

FranzPoize commented Nov 19, 2026 •

Copy link
Copy Markdown
Author

https://github.com/OCA/storage/blob/18.0/storage_image_product/models/image_tag.py

storage_image_product does not use the module image_tag, it creates its own image.tag model

Not sure what you mean

@FranzPoize

Copy link
Copy Markdown
Author

@simahawk

Comment thread storage_image_product/__manifest__.py Resolved
Comment thread storage_image_product/__manifest__.py Resolved
@FranzPoize
FranzPoize force-pushed the 18.0-storage_image_product_server_env_dependency branch from 7b9e18a to edd4429 Compare November 19, 2026 13:48

@simahawk simahawk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

https://github.com/OCA/storage/blob/18.0/storage_image_product/models/image_tag.py

storage_image_product does not use the module image_tag, it creates its own image.tag model

Not sure what you mean

then this module is wrong and we have to rip out of it the dep on server_environment as it has been done for image_tag and other modules 😉

@hparfr

hparfr commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

I'm in favor to merge this PR first because, at the moment it breaks.

Removing the dependency can be done in a separate PR.

@simahawk

Copy link
Copy Markdown
Contributor

If you look closer you'll see that the server env conf is not used at all on this model because there's no _server_env_fields defined.
The only used feature was the tech_name field.
Please check #700

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

Labels

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