diff options
| author | Adrian Torres <adt@odoo.com> | 2018-01-03 13:53:44 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-01-03 13:53:44 +0000 |
| commit | 9f583717e574795f8bd241fea44bad1a59253a66 (patch) | |
| tree | 6e511c47ed4d584b003b312c6b58df1d82e515fc /addons/web/static/src/js/fields/basic_fields.js | |
| parent | fe22a0f9ca92ef0e76bb2f730a2b22da500db5dd (diff) | |
[FIX] website: unlink website_id (#21972)
In the module website, the relational field website_id is defined twice,
once for ir_ui_view and a second time for res_config_settings, for the
former we perform an ondelete='cascade', which means that when the
website model is unlinked, the field is unlinked as well.
This is not done for the website_id field in res_config_settings, which
instead defaults to setting the field to NULL, which violates a not-null
constraint and therefore causes issues when trying to modify/save
settings.
To solve this, a hard delete of the ir_model_field website_id is
performed during the uninstall process of the website module.
Fixes #21905
OPW 803018
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions
