56318875940ae28a9896628612e078ade980cedf
Since odoo/odoo#99660 the `depends` field attribute is no longer passed from the server to the web client. Because of this, the "Set Defaults" feature of the debug menu is completely unusable, as the list of fields on which to set a default is empty because of it. The use of this `depends` field attribute has been introduced in revision odoo/odoo@ce9bbf6c10 In the commit description, we can read that setting a default on computed fields having depends has been disabled because the defaults set were being overwritten by the call to onchange. Note that only the fact the field has depends is required, the actual list of field names is not used, just the fact the list is not empty. However, since revision odoo/odoo@488e334fc8, available since Odoo 14.0, this is no longer the case, the defaults are no longer being overwritten by the call to `onchange`, since the `default_get` has been integrated into the `onchange`. A video attached to the pull request of this revision shows the behavior difference. Hence, setting a default on a computed fields having depends (with an inverse method, hence not readonly) can be allowed again in this "Set defaults" debug feature, therefore avoiding to have to send back the `depends` field attributes to the web client. opw-3031290 opw-3038711 opw-3055292 X-original-commit: 48ac799288e76a0256b9ce0712a70ed5abc0f62e Part-of: odoo/odoo#105251
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%