c80f76da56eb6dec22f5b3be12931837fbdf9e98
Before this commit, there was a hook, named useModel, which eases the use of a model in views. The main (and almost only) role of the hook was to deal with sample data (determine whether or not they can be enabled, fallback on the sample orm when necessary, leave sample mode at reload...). This hook is used by all views except form and activity as they do not implement sample data. This commit renames that hook into "useModelWithSampleData" and introduces a new hook "useModel", which is a lot simpler that the other one, as it's only goal is to do the plumbing between the component using the hook and the model (i.e. spawning required services and loading the data on willStart and willUpdateProps). This new hook is used in form and activity views. Note that useModel doesn't trigger deep renderings, as it is only used on the RelationalModel which is based on fine-grained reactivity. Part-of: odoo/odoo#114024
…
…
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%