9374a6f2b7fc44c8588cd16580eec2e0133ec911
This commit is part of the preliminary work to rewrite the form, list and kanban model. We want this new Model to only be aware of field related information it needs (whereas in its current implementation, the model stores all the information extracted from the field node in the arch). This would allow to properly manage multiple occurrences of the same field in views, that is, each occurrence would be represented by a field component (if visible of course), and that field component would use the field information of the arch node it represents. To this end, we want fields from not using anymore information stored in activeFields in the record datapoint. Instead, we now call extractProps with the whole fieldInfo (the information extracted from the arch), s.t. each field can generate the props it needs from those information (e.g. sub views for x2manys). This commit doesn't remove the use of record.activeFields in concrete fields (this will come later), but reworks the fieldInfo object generated by parseFieldNode, and provide it to the calls of extractProps. In fieldInfo, the `options` key is no longer inside `attrs`, as it is now top-level, alongside several other generic keys that have been processed (like on_change, modifiers...). For that reason, a lot of extractProps definitions had to be adapted. Part of task 3179751 closes odoo/odoo#113092 Related: odoo/enterprise#37266 Signed-off-by: Jorge Pinna Puissant (jpp) <jpp@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%