From 797f722641d5bbc002ade99cbecfb6ae9c5d1f38 Mon Sep 17 00:00:00 2001
From: Nicolas Dumazet <nicolas.dumazet@nexedi.com>
Date: Fri, 22 Oct 2010 04:43:04 +0000
Subject: [PATCH] Add aq_base to avoid trying looking up for uid elsewhere and
 causing errors

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39459 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 5d5c95a4f4..c387184c78 100644
--- a/product/ERP5/Document/BusinessTemplate.py
+++ b/product/ERP5/Document/BusinessTemplate.py
@@ -963,7 +963,7 @@ class ObjectTemplateItem(BaseTemplateItem):
           for subdocument in document.objectValues():
             recurse(hook, subdocument, my_prefix)
       def saveHook(document, prefix):
-        uid = getattr(document, 'uid', None)
+        uid = getattr(aq_base(document), 'uid', None)
         if uid is None:
           return 0
         else:
-- 
2.30.9