54ea9564905f6c140b4892357657e763d21b4fa5
PR [1] introduced the auto save feature (changes in form and list views are automatically saved when the view is left, e.g. with the pager, breadcrumbs, stat buttons, menus...). However, there was one case that had been left aside: when we close the tab or browser. This commit ensures that we also save the changes in this case. The record is saved only if it is valid, otherwise the changes are simply lost (we don't block the tab/browser from closing itself). Moreover, the beforeunload handler must be *almost* sync (a few ms setTimeout seems ok, but definitely not an rpc roundtrip). For that reason, we cannot wait for onchanges to apply before saving. part of task 2330101 [1] https://github.com/odoo/odoo/pull/60693 closes odoo/odoo#65561 X-original-commit: 9949ea14e4f27ca8c0fc84d726ad0434e2e216b8 Signed-off-by: Géry Debongnie (ged) <ged@openerp.com> Signed-off-by: Aaron Bohy (aab) <aab@odoo.com> Co-authored-by: Aaron Bohy <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%