diff --git a/product/ERP5CPS/CPSDocumentPatch.py b/product/ERP5CPS/CPSDocumentPatch.py
index ae9049e8d8b8c0a8cbfeaf6ede3bbc6f36ecf635..a2c945440c50de70003e27db5ae4648237a74aae 100755
--- a/product/ERP5CPS/CPSDocumentPatch.py
+++ b/product/ERP5CPS/CPSDocumentPatch.py
@@ -187,6 +187,11 @@ def getRelation(self):
     return self.relation
   return None
 
+def setRelation(self,value):
+  """
+  """
+  setattr(self,'relation',value)
+
 def getSource(self):
   """
   """
@@ -215,6 +220,7 @@ CPSDocument.getCoverage = getCoverage
 CPSDocument.getCreator = getCreator
 CPSDocument.getRelation = getRelation
 CPSDocument.setCreator = setCreator
+CPSDocument.setRelation = setRelation
 CPSDocument.getSource = getSource
 CPSDocument.getPreview = getPreview
 CPSDocument.setCreationDate = setCreationDate