diff --git a/product/ERP5Type/Constraint/PropertyTypeValidity.py b/product/ERP5Type/Constraint/PropertyTypeValidity.py index 62e12bca235ac6e4b0b9f384c1dd38ade5484258..30d5b11e3327a454fa4047dd3817a8ea79aa2b16 100644 --- a/product/ERP5Type/Constraint/PropertyTypeValidity.py +++ b/product/ERP5Type/Constraint/PropertyTypeValidity.py @@ -33,7 +33,7 @@ from DateTime import DateTime class PropertyTypeValidity(Constraint): """ - This constraint class allows to check / fix type of each + This constraint class allows to check / fix type of each attributes define in the PropertySheets. This Constraint is always created in ERP5Type/Utils.py """ @@ -63,7 +63,10 @@ class PropertyTypeValidity(Constraint): # For each attribute name, we check type for property in object.propertyMap(): property_id = property['id'] - property_type = property['type'] + if property.get('multivalued', 0): + property_type = 'lines' + else: + property_type = property['type'] wrong_type = 0 value = object.getProperty(property_id) if value is not None: