diff --git a/product/ERP5/Document/AccountTypeConstraint.py b/product/ERP5/Document/AccountTypeConstraint.py
index f6c287ef36440bcd50b915db15eec6668c94c4a1..0a921ceede55793356dfba70977777033b335559 100644
--- a/product/ERP5/Document/AccountTypeConstraint.py
+++ b/product/ERP5/Document/AccountTypeConstraint.py
@@ -89,3 +89,4 @@ class AccountTypeConstraint(ConstraintMixin):
           break
     return error_list
 
+  _message_id_tuple = ('message_inconsistent_account_type',)
diff --git a/product/ERP5/Document/AttributeUnicityConstraint.py b/product/ERP5/Document/AttributeUnicityConstraint.py
index 36fc4c109acf0c2fedd61399974fac7c750cf42b..94717be6f7e3c20ccfa56c4a65f3cf7e946ec0c3 100644
--- a/product/ERP5/Document/AttributeUnicityConstraint.py
+++ b/product/ERP5/Document/AttributeUnicityConstraint.py
@@ -49,9 +49,6 @@ class AttributeUnicityConstraint(PropertyExistenceConstraint):
   property_sheets = PropertyExistenceConstraint.property_sheets + \
                     (PropertySheet.AttributeUnicityConstraint,)
 
-  _message_id_tuple = ('message_invalid_attribute_unicity',)
-
-
   def _checkConsistency(self, obj, fixit=0):
     """Check the object's consistency.
       We will make sure that each non None constraint_definition is 
@@ -83,3 +80,5 @@ class AttributeUnicityConstraint(PropertyExistenceConstraint):
 
     return error_list
 
+  _message_id_tuple = PropertyExistenceConstraint._message_id_tuple + \
+      ('message_invalid_attribute_unicity',)