Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Container selection management #4134

Merged
merged 3 commits into from
Mar 5, 2025

Conversation

fdardenne
Copy link

No description provided.

@robodoo
Copy link

robodoo commented Feb 26, 2025

This PR targets the un-managed branch odoo-dev/odoo:master-mysterious-egg, it needs to be retargeted before it can be merged.

@fdardenne fdardenne force-pushed the mysterious-egg-dafl-1 branch from dd26dc7 to c6e8ce3 Compare February 27, 2025 10:40
@fdardenne fdardenne changed the title Mysterious egg dafl 1 Container selection management Feb 27, 2025
@fdardenne fdardenne force-pushed the mysterious-egg-dafl-1 branch 3 times, most recently from a7e79cf to aaf59d2 Compare February 27, 2025 15:56
@fdardenne fdardenne force-pushed the mysterious-egg-dafl-1 branch from aaf59d2 to fa23af4 Compare February 27, 2025 17:36
Before when applying undo/redo the container restored the current
target which is not always the target from the previous steps.

Now we restore the container correctly when applying undo/redo.
To do so, we store the container target on each step.
When an action delete an element which is the current target
of the container, the container will fallback to the ancestor
of the target.

This commit also forbid to update the container when previewing.
@fdardenne fdardenne force-pushed the mysterious-egg-dafl-1 branch from ea02904 to 1e2ab95 Compare March 3, 2025 08:41
Updating the layout of an image gallery replaces
all the images by cloned ones. In consequence we lose the
container selection.

Now when changing layout the image gallery restore the container
selection to the cloned image equivalent to the one that was selected.

The old website fallbacked the selection to the parent
@fdardenne fdardenne force-pushed the mysterious-egg-dafl-1 branch from 1e2ab95 to 32aba27 Compare March 3, 2025 12:21
@FrancoisGe FrancoisGe merged commit edf98bf into master-mysterious-egg Mar 5, 2025
@FrancoisGe FrancoisGe deleted the mysterious-egg-dafl-1 branch March 5, 2025 07:47
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.

3 participants