diff options
| author | Raphael Collet <rco@odoo.com> | 2020-09-17 12:22:22 +0000 |
|---|---|---|
| committer | Raphael Collet <rco@odoo.com> | 2020-09-21 12:40:19 +0000 |
| commit | aebe9a76c9b35e84eda1f46bec3ef6da152b1539 (patch) | |
| tree | 43f10cb1fecc98e041f455b6fbc7c0b9e8ca030a /odoo/tests/common.py | |
| parent | dc591641f3bf8dee50f172134ffd686edc571bd3 (diff) | |
[FIX] core: always evaluate field.depends upon setup
This is necessary when a field's dependencies are given by a callable.
This functionality was broken with the support for an explicit parameter
`depends` in the fields' definition, because the implementation could
not distinguish between the field parameter `depends` and the `depends`
evaluated from compute functions.
The fix consists in storing the field parameter `depends` into
`field._depends`, and the result of the setup into `field.depends`.
closes odoo/odoo#58127
X-original-commit: d4d7925d69c9a37f099ddd3a8929004f17e162eb
Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
Diffstat (limited to 'odoo/tests/common.py')
0 files changed, 0 insertions, 0 deletions
