From 394bb00746dacc2ed10a6fca893804c4ba5e1250 Mon Sep 17 00:00:00 2001
From: Tatuya Kamada <tatuya@nexedi.com>
Date: Fri, 24 Apr 2009 02:36:36 +0000
Subject: [PATCH] fix a bug: 'Add and Edit' FormPrintout then go back to the
 folder view

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26611 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5OOo/FormPrintout.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/product/ERP5OOo/FormPrintout.py b/product/ERP5OOo/FormPrintout.py
index 0693511dc4..a710e35747 100644
--- a/product/ERP5OOo/FormPrintout.py
+++ b/product/ERP5OOo/FormPrintout.py
@@ -135,6 +135,10 @@ class FormPrintout(Implicit, Persistent, RoleManager, Item):
   manage_editFormPrintout = PageTemplateFile('www/FormPrintout_manageEdit', globals(),
                                              __name__='manage_editFormPrintout')
   manage_editFormPrintout._owner = None
+
+  # alias definition to do 'add_and_edit'
+  security.declareProtected('View management screens', 'manage_main')
+  manage_main = manage_editFormPrintout
   
   # default attributes
   template = None
-- 
2.30.9