summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/basic_fields.js
diff options
context:
space:
mode:
authorDenis Ledoux <dle@odoo.com>2020-05-06 16:03:58 +0000
committerDenis Ledoux <dle@odoo.com>2020-05-11 15:23:25 +0000
commit9d2ca693776fdc89ed869bf3742d3150c0e6b318 (patch)
tree8e4945538bd1bc0a8f3f51459885064e838a6431 /addons/web/static/src/js/fields/basic_fields.js
parent1311b0a0966906d354cb084ba5374c3814583fa2 (diff)
[FIX] registry: transitive dependencies of custom fields may not exist
This is related to 826c86e9ab31963e410887a30326f45bcfadf5ea The case is the same, a custom field with an invalid depends, except that this time its through a transitive dependency. e.g. custom_field_2 depends on custom_field_1 custom_field_1 depends on unexisting_field The loading of the registry completely fails, because the loading of the field `custom_field_2` raises a `KeyError` exception in `def transitive_dependencies` @ `dependencies[field]` because the `custom_field_1` was skipped @ line `dependencies[field] = set(field.resolve_depends(model))` Landing in a state where the server can no longer start at all, and the user can't therefore solve its custom field himself to repair the situation. closes odoo/odoo#51057 X-original-commit: 7b642884cc4d643a5a998b4639bf26b4e81cc46e Signed-off-by: Denis Ledoux (dle) <dle@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions