From b9c8959c6965c1690a77244b1bc918d8fa7c82ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com> Date: Fri, 29 Sep 2006 13:50:32 +0000 Subject: [PATCH] use getOb to get the object from zodb git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10432 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/BusinessTemplate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product/ERP5/Document/BusinessTemplate.py b/product/ERP5/Document/BusinessTemplate.py index b9d9c01467..291cddbbb6 100644 --- a/product/ERP5/Document/BusinessTemplate.py +++ b/product/ERP5/Document/BusinessTemplate.py @@ -584,7 +584,7 @@ class ObjectTemplateItem(BaseTemplateItem): subobjects_dict = {} # Object already exists if object_id in container_ids: - old_obj = container[object_id] + old_obj = container._getOb(object_id) if hasattr(aq_base(old_obj), 'groups'): # we must keep original order groups # from old form in case we keep some -- 2.30.9