diff --git a/product/ERP5/Document/BusinessManager.py b/product/ERP5/Document/BusinessManager.py index 54d77b9810c4f421f973838c29e020b6be6340d0..21883f49ee1790fcfc2187ea7c6a871751a0f276 100644 --- a/product/ERP5/Document/BusinessManager.py +++ b/product/ERP5/Document/BusinessManager.py @@ -222,7 +222,8 @@ class BusinessManager(Folder): """ Returns the current state in installation """ - portal_workflow = getToolByName(self.getPortalObject(), 'portal_workflow') + portal = self.getPortalObject() + portal_workflow = portal.portal_workflow wf = portal_workflow.getWorkflowById( 'business_manager_installation_workflow') return wf._getWorkflowStateOf(self, id_only=id_only )