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

[FW][FIX] website: fix new item and clone in s_tabs snippet #156004

Conversation

fw-bot
Copy link
Contributor

@fw-bot fw-bot commented Feb 29, 2024

Commit 1 refactored the tabs snippets options, in doing so, it introduced a selector which could also target a tabs snippet from within its own tab. This leads to very weird behaviour on clone.

Commit 2 introduced a new MultipleItems abstract option, and with it, added a selector which could cause the same issue as above.

This commit fixes this by properly restricting the selectors to the direct children.

Steps to reproduce:

  • Create a new web page
  • Add a "Tabs" block
  • Put some text in each tab in other to identify which text belongs to which tab
  • In the first tab, add a new "Tabs" block, so that you will have tabs and sub-tabs
  • Put some text in sub tabs in order to identify which text belongs to which sub tab
  • try to add a new tab in your main tab block => look at the beautiful mess it creates.

opw-3730155

Forward-Port-Of: #154695

Commit [1] refactored the tabs snippets options, in doing so, it
introduced a selector which could also target a tabs snippet from within
its own tab. This leads to very weird behaviour on clone.

Commit [2] introduced a new MultipleItems abstract option, and with it,
added a selector which could cause the same issue as above.

This commit fixes that by using replacing the selectors to only select
the panes of the parent Tabs snippet.

Steps to reproduce:
- Create a new web page
- Add a "Tabs" block
- Put some text in each tab in other to identify which text belongs to which tab
- In the first tab, add a new "Tabs" block, so that you will have tabs and sub-tabs
- Put some text in sub tabs in order to identify which text belongs to which sub tab
- try to add a new tab in your main tab block
=> look at the beautiful mess it creates.

[1]: odoo@7572cc1
[2]: odoo@ebfa286

opw-3730155

X-original-commit: 6c72f25
@robodoo
Copy link
Contributor

robodoo commented Feb 29, 2024

@fw-bot
Copy link
Contributor Author

fw-bot commented Feb 29, 2024

This PR targets saas-16.1 and is part of the forward-port chain. Further PRs will be created up to master.

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@robodoo robodoo added the forwardport This PR was created by @fw-bot label Feb 29, 2024
@C3POdoo C3POdoo added the OE the report is linked to a support ticket (opw-...) label Feb 29, 2024
robodoo pushed a commit that referenced this pull request Mar 1, 2024
Commit [1] refactored the tabs snippets options, in doing so, it
introduced a selector which could also target a tabs snippet from within
its own tab. This leads to very weird behaviour on clone.

Commit [2] introduced a new MultipleItems abstract option, and with it,
added a selector which could cause the same issue as above.

This commit fixes that by using replacing the selectors to only select
the panes of the parent Tabs snippet.

Steps to reproduce:
- Create a new web page
- Add a "Tabs" block
- Put some text in each tab in other to identify which text belongs to which tab
- In the first tab, add a new "Tabs" block, so that you will have tabs and sub-tabs
- Put some text in sub tabs in order to identify which text belongs to which sub tab
- try to add a new tab in your main tab block
=> look at the beautiful mess it creates.

[1]: 7572cc1
[2]: ebfa286

opw-3730155

closes #156004

X-original-commit: 6c72f25
Signed-off-by: Benjamin Vray (bvr) <bvr@odoo.com>
@robodoo robodoo closed this Mar 1, 2024
@fw-bot fw-bot deleted the saas-16.1-15.0-fix-tabs-snippet-clone-ard-sMMI-fw branch March 15, 2024 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
forwardport This PR was created by @fw-bot OE the report is linked to a support ticket (opw-...)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants