[IMP] mail: add error message for field patch with fieldType
closes odoo/odoo#102363 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
This commit is contained in:
@@ -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}".`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user