diff --git a/product/ERP5Type/Constraint/PropertyTypeValidity.py b/product/ERP5Type/Constraint/PropertyTypeValidity.py
index ca0b0e9b68b4fcf4baede04d4bdae9ca376fc8f2..031fdf8c24a514701e806d3f57cb765a8da5024d 100644
--- a/product/ERP5Type/Constraint/PropertyTypeValidity.py
+++ b/product/ERP5Type/Constraint/PropertyTypeValidity.py
@@ -95,7 +95,8 @@ class PropertyTypeValidity(Constraint):
     # if this property was a local property and has been later added in a
     # property sheet, we want to remove it from _local_properties
       if fixit and \
-         property_id in [x['id'] for x in obj._local_properties] and \
+         property_id in [x['id'] for x in
+             getattr(obj, '_local_properties', ())] and \
          len([x for x in obj._propertyMap() if x['id'] == property_id]) > 1:
         obj._local_properties = tuple([x for x in obj._local_properties
                                        if x['id'] != property_id])