Skip to content

[18.0][FIX] Show relations of archived media and images - #676

Draft
simahawk wants to merge 4 commits into
OCA:18.0from
camptocamp:18-fix-archived-relations
Draft

simahawk wants to merge 4 commits into
OCA:18.0from
camptocamp:18-fix-archived-relations

Conversation

@simahawk

@simahawk simahawk commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Show relations of archived media and images

The active field on media and image relations, related to the media or image, made Odoo hide the relations of archived records everywhere (product and variant forms, ...). It's renamed to media_active / image_active so these relations are listed again, grayed out. Archived images are skipped when computing the main image. See the commits for details.

@OCA-git-bot OCA-git-bot added series:18.0 mod:storage_image Module storage_image mod:storage_media_product Module storage_media_product mod:storage_image_product Module storage_image_product labels Oct 1, 2026
Gray out the archived files in the list, flag them with a ribbon on
the form, and add a filter to list them.
Rename the 'active' field of the image relations to 'image_active':
named 'active', it hides the relations of archived images everywhere
(eg: on products), while they must show up grayed out.

Dim the archived images in the relation kanban.

Show the archived images as well: grayed out in the list, flagged with
a ribbon on the form, and a filter to list them.
List the relations of archived images on products and variants,
grayed out, and skip them when computing the main image.
Rename the 'active' field of the relations to 'media_active': named
'active', it hides the relations of archived media everywhere (eg: on
the product and variant forms), while they must show up grayed out.
@simahawk
simahawk force-pushed the 18-fix-archived-relations branch from 1a7049a to 4817a15 Compare October 2, 2026 12:49
@OCA-git-bot OCA-git-bot added the mod:storage_file Module storage_file label Oct 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:storage_file Module storage_file mod:storage_image_product Module storage_image_product mod:storage_image Module storage_image mod:storage_media_product Module storage_media_product series:18.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants