4393a03f4f4116df89964f85a18e5369c93173b8
Summary ------- Currently, if you try to export FEC, download will work correctly, but the UI will stay locked. Steps to reproduce ------------------ * install l10n_fr_fec * Accounting / Reporting / France FEC * input a start/end date (ex: 01/01/2022 to 12/31/2022) * click Generate => Report exports immediately, but the UI stays locked. Cause ----- This issue is caused by commit d291ef80b726c11486efe6e42d9dcf4968efa518 The intent is to make it so that if an `act_url` action with target "self" is expected to reload the page, then the UI is blocked and remains so, expecting the page reload to naturally unblock it. We rely on the `beforeunload` event as a signal that the page is likely to reload, usually followed by the `unload` event (actual reloading of the page). However, things are different when the new URL points to a file download. Here, `beforeunload` is triggered, but not `unload`. As a result, the `env.services.ui.unblock()` function isn't called, and since the page doesn't reload, the UI stays blocked even after the download starts. opw-3344777 closes odoo/odoo#129918 X-original-commit: 23744ba3f992203e36dac59acfc905b018758e25 Signed-off-by: Brice Bartoletti (bib) <bib@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%