72051ad58af91922be21d01b36de9376b699cb75
Before this commit, following those steps: - Go to /hello.css - Create the page/file - View in page manager - Click on its row -> You're redirected to the file, with infinite loading This commit fixes this behaviour by unblocking the iframe: - on the OdooFrameContentLoaded event for frontend pages - on the load event for other pages To do that, the BlockIframe component is changed to handle process ids. Before this commit, the BlockIframe component would count the calls to block or unblock the iframe (and store it in an iframeLocks variable), so that multiple processes can block the iframe independently from each other. As an exemple, for two processes A and B, the iframe should remain blocked during those two processes, and released at the end: (A) blockIframe => (B) blockIframe => (B) unblockIframe => (A) unblockIframe. But that iframeLocks variable was fragile: a process that blocks the iframe should unblock it once, otherwise it would mess up the locks count. It was not appropriate for a process that could be ended with two events, for example loading the iframe. The first of the 'load' or 'OdooFrameContentLoaded' events should unblock it. To change that, a process can block the iframe with a processId. The first unblock call with the same processId will unblock the iframe, the other ones will be ignored. task-2687506 Part-of: odoo/odoo#95955
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%