Tuesday, October 10, 2023
4 changes · master
Resolved issues and error corrections
Fixes a problem that made a button-group switch on the online shop unusable after a supporting component was removed. Customers and site visitors can now use this shop interface control as expected, reducing friction during browsing or purchasing.
Original PR description
In commit f24e61334ec1de577c6031743199e3b713290d2f the legacy rpc files have been removed. It was not initialized in this public widget making the btn-group switch unusable. task-3547424 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The self-ordering app now shows the correct price when customers choose take away instead of eat in. This prevents pricing confusion at checkout and helps restaurants apply the right fiscal pricing automatically.
Original PR description
Steps to reproduce: - Activate "Eat in / Take away" (`pos_self_ordering_takeaway`) setting. - Set the alternative fiscal position. - ISSUE: When selecting take away in the app, the take away price is not shown. FIX: The issue is because during the loading of the products, only the default price is computed. In this PR, we are now computing the take away price as well. And in the ui, depending on the choice, we are showing the correct price.
This fixes an issue where the command menu could fail to open correctly while editing a mailing. The editor now keeps using the correct embedded document after updates, making mailing content editing more reliable.
Original PR description
Steps to reproduce: - Create new mailing (mass_mailing) - Type to '/' to open the Powerbox The `getPowerboxElement` function fails to return the correct node because `this.options.document` is no longer the iframe document after the Wysiwyg component is re-rendered. This happens because when the Wysiwyg component has its props updated, its `options.document` is overwritten by its default option (the top document). This commit makes sure that, when the editor is mounted inside an iframe, `options.document` evaluates to the iframe's document throughout the entirety of the Wysiwyg component lifecycle. task-3548120
This fixes several issues in Odoo Studio so editing views no longer affects the user context used elsewhere, reducing unexpected behavior when loading views. It also prevents unnecessary browser-close warnings in the form editor and fixes crashes when viewing field tooltips in the list editor.