2b7cbddd9bcc96330f4271aac057e85eb3e0a34c
The `PageDependencies` obtains the page dependencies from the server during its `onWillStart`. If the parent component state changes before the component is mounted, Owl destroys and creates a new one. This is the case if the server response is not obtained before the value of the URL field is modified again. Because of this, if the user types quickly in the URL field, an RPC is sent for each key press. This commit obtains the dependencies in a `useEffect` that is run only once (instead of inside the `onWillStart`), and only after the component is mounted. It stores them in the `state` so that they are rendered once they are obtained. Steps to reproduce: - Open Website > Site > This page > Properties. - Type quickly in the URL field. => One RPC was sent per key press. task-3169376 closes odoo/odoo#127125 X-original-commit: a65d8811119f4d1a044be3e140fd0c27ad1cf823 Signed-off-by: Romain Derie (rde) <rde@odoo.com> Signed-off-by: Benoit Socias (bso) <bso@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%