From 43244bb20682d776714bba0b7f7f62bc426b318d Mon Sep 17 00:00:00 2001
From: Nicolas Dumazet <nicolas.dumazet@nexedi.com>
Date: Wed, 2 Feb 2011 04:39:47 +0000
Subject: [PATCH] register object_classes as well

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42916 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Type/Utils.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/product/ERP5Type/Utils.py b/product/ERP5Type/Utils.py
index 8eff16a5e2..32331c6719 100644
--- a/product/ERP5Type/Utils.py
+++ b/product/ERP5Type/Utils.py
@@ -1193,6 +1193,7 @@ def initializeProduct( context,
 
   # Register Objets
   for c in object_classes:
+    registerDocumentClass(c.__module__, c.__name__)
     icon = getattr(c, 'icon', None)
     permission = getattr(c, 'permission_type', None)
     context.registerClass(c,
-- 
GitLab