040c73fe694376825ff38de315b1ff6a3c5b8eed
Let's assume the following scenario in a graph view - toggle a filter on a slow network s.t. it takes a while to load - while it's loading, toggle a measure Before this commit, the view was kind of locked after those two steps, i.e. toggling measures or changing graph mode did not work anymore (it could be unlocked by interacting again with the search view though). The reason is that the new filter triggered a re-rendering of the withSearch component (the parent of the graph view), thus calling willUpdateProps on the graph view, which reloads the data. Toggling a measure cancels the current load operation (via keepLast), and the promise returned by willUpdateProps is thus pending forever. From that point, only another re-rendering from the parent (withSearch) could unlock the situation by cancelling the previous rendering. To solve this, we use the new Race primitive. It ensures that the promise returned by load resolves as soon as the view is actually reloaded (whether it came from the load itself, of by toggling a measure). This commit also refactors the pivot model to use the Race primitive. X-original-commit: ceebab7128cb9838024029aefe3910a18cf14e44 Part-of: odoo/odoo#76778
…
…
…
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%