08a2dd9133b93269823afe4736c3cd378b434b7f
Before this commit, in some cases the submit button of the form snippet never stopped loading after being clicked (e.g. redirect to an anchor in the same page). Now, the form and the button loading effect are reset at the same time at the appropriate time depending on the post-send action: - Redirect to another page: never (we leave the form values and the button loading effect for the whole redirection duration) - Redirect to an anchor on the same page: after the scroll animation - Show a custom HTML message: never (this type of post-send action is meant to hide the form after that message is shown, there is no need to restore it to its initial state) - "Nothing" (= small message next to send button): once the data is sent In the last two cases, a 400ms delay was also added before showing the message so that the send flickers less and seems more smooth. In the last case, it also prevents to double click and double send the form. Related to task-2172312 closes odoo/odoo#81703 X-original-commit: 42f6887bb4406d4aa636040c8325e8ecab202778 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%