c0f68e903708360b1f091041d85a21f8b2bebd3a
The use case happens in studio. have some overflowing app submenus in an app go into studio refresh with a simple F5. Before this commit, the navbar's overflowing buttons wouldn't put themselves inside the "more" dropdown This was because the studio client action also reacts to change in the menu service, so the technical flow was: - laodState (webClient) - setMenu (MENU-CHANGED on the bus), then because of it: - studio client action > render (1) - studio navbar > render (with adapt right after that render!) (2) - studio navbar > render (because of 1) which cancels the render in 2 without cancelling the promise, that is adapt is still called. To remedy this, the standard use of useEffect and useBus are is put into place. After this commit, the studio navbar has its overflowing menu items in the dropdown. The adapt algorithm now uses getBoundingClientRect to get the not rounded width of elements that should be adapted, otherwise, slight differences in browser's computation and rounding of offsetWidth may influence test results. closes odoo/odoo#80353 X-original-commit: 231902738287a897f50a1711f991bc55928b77d9 Related: odoo/enterprise#22498 Signed-off-by: Géry Debongnie (ged) <ged@openerp.com> Signed-off-by: Lucas Perais (lpe) <lpe@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%