0302e2f4df413ef47d9c4c29c5baddcc75b396a3
This commit adds the onInput props, allowing to run code from the parent of the SelectMenu depending on the search value. This can be used in situations where the list of choices must be dynamic. Also, whenever the list of choices or groups is edited in length, the menu is filtered using the newer values. For example, choices can be generated from a fetch of items. Now, instead of loading all items before instanciating a SelectMenu, a limit could be set during the fetch, and another fetch can happen as the user type. A test has been added to verify that the onInput props is called correctly, and executes its code. In this test, the list of choices is edited, and we assert that the newer elements are present in the menu. closes odoo/odoo#124224 Signed-off-by: Bastien Fafchamps (bafa) <bafa@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%