[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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user