a25064380fbe2e81450a190252e6c06b378b559d
*: hr_holidays, im_livechat, sms, snailmail, website_slides Most messaging related components have common needs concerning subscribing to model changes, and not needing to be rerendered unless their props change. Previously, most components would call the hooks "useModels" and "useShouldUpdateBasedOnProps" individually. Messaging components also depend on one another quite a bit, requiring a lot of explicit imports of other components. It would also be useful to be able to have cyclic dependencies between component (eg Message renders a component that allows to delete the message, and the delete component renders the message in a confirmation dialog), but that doesn't work with explicit imports (the odoo module system doesn't support cyclic dependencies). This commit adds a Component decorator that: - Registers the component in an internal registry - Makes all components in this registry available at render time to components that have been registered in this way - Calls the useModels and useShouldUpdateBasedOnProps hooks during component initialization (setup) enterprise PR: odoo/enterprise#20304 closes odoo/odoo#74982 Signed-off-by: Sébastien Theys (seb) <seb@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%