diff --git a/addons/mail/static/src/model/model_core.js b/addons/mail/static/src/model/model_core.js index 1d731cb17c3..d7de47fcbd7 100644 --- a/addons/mail/static/src/model/model_core.js +++ b/addons/mail/static/src/model/model_core.js @@ -297,6 +297,8 @@ function patchFields(patch) { originalFieldDefinition.sort = attributeData; } break; + case 'fieldType': + throw new Error(`Cannot patch field ${patch.name}/${fieldName}: patches do not need field type (attr, one, many).`); default: throw new Error(`Cannot patch field ${patch.name}/${fieldName}: unsupported field attribute "${attributeName}".`); }