7b16b0683895bf6d35cda0f27399df8ecc2e598a
Before this commit, the website service method fetchWebsites was not clearly defined: it was fetching the user groups, the websites, the current website and it was also setting the service's current website. There is a difference between the get_current_website backend method and the getter from the website service, introduced in [1]: the websiteService.currentWebsite value referes to the website currently edited in the WebsitePreview client action. From that value depend other components visibility (like the contextual menus). So when a fetchWebsites call was done from outside the client action, from a PageListController with [2], it was breaking the flow by setting a currentWebsite outside the client action and it could lead to bugged flows: - Go to the "Pages" list view => The contextual "This page" menu is not shown, it's correct - Refresh the page => The "This Page" menu is shown (and broken). To fix that, the fetchWebsites method is divided into a fetchUserGroups, the searchRead on the websites, and another call to get_current_website, located in the client action. It allows to load the client action iframe with the last viewed/edited website. Also, the menu "This Page" is shown only when there is a pageDocument at the website service level. [1]: https://github.com/odoo/odoo/commit/31cc10b91dc7762e23b4bde9b945be0c4ce3fe3b [2]: https://github.com/odoo/odoo/commit/940f4ee875332dafa1f379970a7683be6b3ee606 task-2687506 closes odoo/odoo#100055 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
…
…
…
…
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%