Skip to content

[MIG] web_widget_open_tab: Migration to 18.0#3173

Merged
OCA-git-bot merged 24 commits intoOCA:18.0from
c4a8-odoo:18.0-mig-web_widget_open_tab
May 20, 2025
Merged

[MIG] web_widget_open_tab: Migration to 18.0#3173
OCA-git-bot merged 24 commits intoOCA:18.0from
c4a8-odoo:18.0-mig-web_widget_open_tab

Conversation

@CRogos
Copy link
Copy Markdown
Contributor

@CRogos CRogos commented May 15, 2025

Followup of:
#3091
#3029

etobella and others added 23 commits May 15, 2025 20:25
Currently translated at 100.0% (6 of 6 strings)

Translation: web-16.0/web-16.0-web_widget_open_tab
Translate-URL: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_widget_open_tab/es/
@CRogos CRogos force-pushed the 18.0-mig-web_widget_open_tab branch from 81c6ef8 to 7a36042 Compare May 15, 2025 20:55
@CRogos
Copy link
Copy Markdown
Contributor Author

CRogos commented May 15, 2025

@amh-mw could you review?

Copy link
Copy Markdown
Member

@amh-mw amh-mw left a comment

Choose a reason for hiding this comment

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

Code review only. LGTM.

@yostashiro @widadelbekkouri-odoo @jtl-mw Additional reviews?

Copy link
Copy Markdown
Contributor

@MohamedOsman7 MohamedOsman7 left a comment

Choose a reason for hiding this comment

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

Code & functional review LGTM

@etobella
Copy link
Copy Markdown
Member

/ocabot migration web_widget_open_tab

@OCA-git-bot OCA-git-bot added this to the 18.0 milestone May 20, 2025
@OCA-git-bot OCA-git-bot mentioned this pull request May 20, 2025
48 tasks
}
loadAttrs(ev) {
$(ev.target).tooltip();
return window.location.pathname + "/" + this.props.record.data.id;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is not working properly. Let me explain the case:

1- Access Apps menu
2- Refresh (this way we set the window.location.pathname
3- Access the User menu (do not press F5)
4- PRess the Open Tab widget

}
loadAttrs(ev) {
$(ev.target).tooltip();
return window.location.pathname + "/" + this.props.record.data.id;
Copy link
Copy Markdown
Member

@etobella etobella May 20, 2025

Choose a reason for hiding this comment

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

Use this:

return `/odoo/${this.props.record.resModel}/${this.props.record.data.id}`;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I've changed it this way, because I also could not find a better solution, but the bread-crumbs and context get lost in the new tab.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Might be, but there is no better solution, as we need to use the model if the widget is aplied in a list of a on2many field

@CRogos CRogos force-pushed the 18.0-mig-web_widget_open_tab branch from 55cc4a0 to c8950bd Compare May 20, 2025 08:04
@etobella
Copy link
Copy Markdown
Member

/ocabot merge nobump

@OCA-git-bot
Copy link
Copy Markdown
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 18.0-ocabot-merge-pr-3173-by-etobella-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit d41b814 into OCA:18.0 May 20, 2025
7 checks passed
@OCA-git-bot
Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at 007c966. Thanks a lot for contributing to OCA. ❤️

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.