8b856c669935d503f72365649d873ca070bb81b3
This commit is a refactoring of the command palette. It aims to improve its design and make it very easily configurable. For this, we added the config props allowing the command palette to know what to display. The config of a palette command is composed of: - categoriesByNamespace?: list containing all categories according to their namespace; - emptyMessageByNamespace?: dictionary having for key a namespace and for value the message to display if there is no choice available; - footerTemplate?: template to display in the footer; - namespace?: namespace to add in the search bar; - placeholder?: placeholder of the searcher; - providers: list containing all the providers generating the commands to display; The providers are the only information needed in the config. The rest of the config is optional. This commit also adds the possibility to open a custom command palette using the command service. For this, you just have to call openPalette and give it the required config. If the command action returns a config, the command palette will not be close and will use this new config. Task-id: 2622240 Part-of: odoo/odoo#74933
…
…
…
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%