982e3c2671bdfabfd8369bf74feccd8b656641df
This commit aims at making the website dialog as well as the edit_menus tour more stable. Commit [1] introduced a new dialog API for website. The component WebsiteDialog handles click asynchronously. Prior to this commit, the tour could sometimes detect and click on modal triggers before the actions that the previous trigger was triggering could complete. This could lead to a modal closing too early either because a click would done on the wrong modal or the input was completed before the validation method was called (since the click handlers are asynchronous). Here are a few examples of possible failure in the tour : - The tour clicks on "Add Menu Item", which should open a new modal - The tour then clicks on OK to make sure the modal does not close. - The click on OK is done before the New Menu Item modal is open and therefore is triggered on the previous modal - The modal is closed too early - The tour clicks on OK while the URL field is empty - Before the validation method is processed the tour inserts a value in the input field. - The validation method doesn't block the OK method which results in the dialog being closed - The tour expects the dialog to be open and crashes - The tour clicks on OK while the URL field is empty - Before the validation method is processed the tour inserts a value in the input field - The tour clicks on OK again - 2 entries are created instead of one. The last one doesn't crash the tour but is still incorrect. This commit disables the buttons when they're clicked for the first time until the handler is processed. This commit also make the triggers in the tour more specific so that the tour always clicks on the right modals. [1]: https://github.com/odoo/odoo/commit/28a78fb4e4e4465aa99fb94f7cac3a21b2188502 runbot-4122 closes odoo/odoo#95839 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%