6c3ae09d7fe57b06184fe2fd17b2270e44a7eeaf
The user profile view is loaded using sudo https://github.com/odoo/odoo/blob/183b021b2f01595caee7fa672cc5f212a9e63075/addons/hr/models/res_users.py#L172-L185 Therefore, there are in the view field nodes which are restricted to some groups, the user might not belong to. These fields need to be in the result of the `fields_get` in order for the web client to be aware of them. ``` /web/static/src/legacy/legacy_load_views.js:75 Uncaught Promise > models[resModel][fieldName] is undefined ``` This issue happens since odoo/odoo#87522 with which the fields are no longer returned in `fields_view_get`, renamed `get_view`. The behavior before this revision was weird: When calling `load_views` on `res.users` to get the profile form view, you had fields added in the `fields` key of the `form` view which were not present in the `fields` list key of the main result dict, which is supposed to have all the fields of the model. e.g.: ``` { 'fields': { ... # address_home_id not there }, 'views_fields': { 'form': { 'arch': ..., 'fields': { ... 'address_home_id': .... ... } } }, } ``` closes odoo/odoo#90331 Signed-off-by: Denis Ledoux (dle) <dle@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%