diff options
| author | fja-odoo <fja@odoo.com> | 2020-02-10 15:33:11 +0000 |
|---|---|---|
| committer | fja-odoo <fja@odoo.com> | 2020-02-13 16:53:15 +0000 |
| commit | 72489822801162ea6c5bcb14337478a147ad8a5d (patch) | |
| tree | ac52c6a7ecf172e8f315bdae88d16dc2dd9a3f63 /addons/website_form | |
| parent | ef1169c4b0bf584f6509b0a59105f75d8ca1f3f9 (diff) | |
[FIX] website_form: fix many2one_reference field
The many2one_reference is not a field that makes sense with the
form builder.
part of: https://github.com/odoo/odoo/pull/45280
task-2196797
closes odoo/odoo#45339
X-original-commit: 3e61ca5008e19c36aacedf57836dbd4369607e45
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/website_form')
| -rw-r--r-- | addons/website_form/models/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_form/models/models.py b/addons/website_form/models/models.py index c2fa9015ce1..77cf3550642 100644 --- a/addons/website_form/models/models.py +++ b/addons/website_form/models/models.py @@ -64,7 +64,7 @@ class website_form_model(models.Model): for field in list(fields_get): if 'domain' in fields_get[field] and isinstance(fields_get[field]['domain'], str): del fields_get[field]['domain'] - if fields_get[field]['readonly'] or field in MAGIC_FIELDS: + if fields_get[field]['readonly'] or field in MAGIC_FIELDS or fields_get[field]['type'] == 'many2one_reference': del fields_get[field] return fields_get |
