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
5 lines
122 B
Python
5 lines
122 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from . import test_ui
|