diff --git a/product/ERP5Configurator/Document/BusinessConfiguration.py b/product/ERP5Configurator/Document/BusinessConfiguration.py index eb32224f0be4b496319bb05d0b1be906f487e7cd..186589463afc4d267f4bda0a6f9a08839a569b6e 100644 --- a/product/ERP5Configurator/Document/BusinessConfiguration.py +++ b/product/ERP5Configurator/Document/BusinessConfiguration.py @@ -392,7 +392,12 @@ class BusinessConfiguration(Item): for obj in self.contentValues(filter={'portal_type': ['Configuration Save']}): object_ids.append(obj.getId()) self.manage_delObjects(object_ids) - del self.workflow_history + if getattr(self, "workflow_history", None) is not None: + del self.workflow_history + if getattr(self, "_global_configuration_attributes", None) is not None: + del self._global_configuration_attributes + if getattr(self, "_multi_entry_transitions", None) is not None: + del self._multi_entry_transitions + self.setSpecialiseValue(None) # ERP5 Workflow initialization erp5_workflow = self.getResourceValue() - erp5_workflow.initializeDocument(self)