5674e221c41668f49bd9b7e85406119f964569c6
In many situations, when you click on a button, you want to disable all the other buttons while it is running. Currently, in each of these situations, we duplicate the same code that disabled all the buttons and enabled them afterwards. Unfortunately, in many cases, if the code executed crashes, the buttons are not enabled. In this commit, we're going to create a helper so that we have a single version of the code that correctly handles crashes. This helper will disabled all the buttons, then execute the click code and enabled all the buttons afterwards. If the code crashes, it will also enbaled them. The problem has been reported for the Settings Form view: When you edit this view and click save, if an error occurs in the save, all the buttons remain disabled. closes odoo/odoo#140938 Signed-off-by: Aaron Bohy (aab) <aab@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%