diff --git a/product/ERP5/mixin/rule.py b/product/ERP5/mixin/rule.py
index 8c01df5f820ad6376a1aa793d4bb01ef8e7501d6..6b7322f43dcb3e780cfef703a9f92d6ef8818f8b 100644
--- a/product/ERP5/mixin/rule.py
+++ b/product/ERP5/mixin/rule.py
@@ -178,7 +178,6 @@ class RuleMixin:
 
     kw -- XXX-JPS probably wrong interface specification
     """
-    portal_types = getToolByName(self, 'portal_types')
     if id is None:
       id = context.generateNewId()
     if getattr(aq_base(context), id, None) is None: