diff options
| author | Adrian Torres <adt@odoo.com> | 2018-02-23 10:28:10 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-02-23 10:28:10 +0100 |
| commit | ff7efbb1e81cd6987601c03f0b75a37d2df8e331 (patch) | |
| tree | be9966ec4236fec8900cebafdc6f4e208f200c65 /addons/auth_signup/models/__init__.py | |
| parent | ad1cceb4fbd2f054af647833bd34e4e06012bb6c (diff) | |
[FIX] website,sale,auth_signup: prevent shared field deletion
The field `auth_signup_uninvited` is defined in the 3 aforementioned
modules, yet they are independant modules in respects to one another.
This means that whichever module is installed first will create an XMLID
for the field, if this module is uninstalled before the other two: boom!
crash when changing general settings because the res.config.settings
field set by the other two modules no longer exists.
To solve this, we simply ignore the field during ir_model_field.unlink()
Fixes #23171
Diffstat (limited to 'addons/auth_signup/models/__init__.py')
| -rw-r--r-- | addons/auth_signup/models/__init__.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/auth_signup/models/__init__.py b/addons/auth_signup/models/__init__.py index 44dc1ee6b11..a25160266e7 100644 --- a/addons/auth_signup/models/__init__.py +++ b/addons/auth_signup/models/__init__.py @@ -4,3 +4,4 @@ from . import res_config_settings from . import ir_http from . import res_partner from . import res_users +from . import ir_model_fields |
