b7dfc7f71c9d1f8205060b828f57aac356f6db7e
This commit fixes a race condition spotted by the click all test, in the Lunch application. To reproduce, go to Lunch > Configuration > Products, in the list view, toggle filter "Archived" s.t. there's no record matching the domain (and nothing displayed in the search panel anymore), then switch to kanban view, and remove the filter. On a multi-build, this scenario fails ~4 times out of 10. The issue occurs because a re-rendering of the search panel is triggered by its parent (because of the filter change), but the search panel didn't compute its active sections yet (this is done when the "update" event is triggered on the search model). The exact situation is hard to reproduce, but if there are non empty sections in the model, and the active sections haven't been computed yet in the search panel, it crashes. For instance, it happens all the time by delaying the promise returned by "_fetchSections". This commit doesn't introduce a qunit test because we didn't manage to reproduce the exact same situation in a test. This makes the Lunch click all test pass all the time though. closes odoo/odoo#103638 X-original-commit: b84df7e08b4d413de2e8a0b1df6cb8d6ad4b08cf Signed-off-by: Mathieu Duckerts-Antoine <dam@odoo.com> 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%