From 3dcd5a2da1d7b353698f526c9263b9d93fc0d01e Mon Sep 17 00:00:00 2001 From: Yoshinori Okuji <yo@nexedi.com> Date: Thu, 2 Dec 2004 12:37:00 +0000 Subject: [PATCH] Make the history of business_template_installation_workflow empty when added. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1951 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/BusinessTemplate.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/product/ERP5/Document/BusinessTemplate.py b/product/ERP5/Document/BusinessTemplate.py index b97e10e9a0..4c03dd5abc 100755 --- a/product/ERP5/Document/BusinessTemplate.py +++ b/product/ERP5/Document/BusinessTemplate.py @@ -914,7 +914,8 @@ Business Template is a set of definitions, such as skins, portal types and categ if portal_workflow is not None: # Make sure that the installation state is "not installed". if portal_workflow.getStatusOf('business_template_installation_workflow', self) is not None: - portal_workflow.setStatusOf('business_template_installation_workflow', self, 'not_installed') + # XXX Not good to access the attribute directly, but there is no API for clearing the history. + self.workflow_history['business_template_installation_workflow'] = None def build(self): """ -- 2.30.9