diff --git a/product/ERP5Type/Utils.py b/product/ERP5Type/Utils.py
index aef83a7ba84d44c1e7aa9a4b0f93ffd9add8a832..d3de48cb2664dc4273f82440a6a3820d820271cc 100644
--- a/product/ERP5Type/Utils.py
+++ b/product/ERP5Type/Utils.py
@@ -925,7 +925,7 @@ def importLocalDocument(class_id, path=None):
   import Permissions
 
   from Products.ERP5Type import document_class_registry
-  if path and '/Products/' in path:
+  if path and 'products' in path.lower(): # XXX
     classpath = document_class_registry[class_id]
     module_path = classpath.rsplit('.', 1)[0]
     module = __import__(module_path, {}, {}, (module_path,))