Commit b8b04a0d authored by Romain Courteaud's avatar Romain Courteaud

slapos_crm: drop template_instance_tree

parent 4ae69890
...@@ -850,7 +850,7 @@ class TestSlapOSCrmStopInstanceTree(SlapOSTestCaseMixinWithAbort): ...@@ -850,7 +850,7 @@ class TestSlapOSCrmStopInstanceTree(SlapOSTestCaseMixinWithAbort):
def createInstanceTree(self): def createInstanceTree(self):
new_id = self.generateNewId() new_id = self.generateNewId()
instance_tree = self.portal.instance_tree_module\ instance_tree = self.portal.instance_tree_module\
.template_instance_tree.Base_createCloneDocument(batch_mode=1) .newContent(portal_type="Instance Tree")
instance_tree.edit( instance_tree.edit(
reference="TESTHS-%s" % new_id, reference="TESTHS-%s" % new_id,
) )
...@@ -1074,7 +1074,7 @@ class TestSlapOSCrmDeleteInstanceTree(SlapOSTestCaseMixinWithAbort): ...@@ -1074,7 +1074,7 @@ class TestSlapOSCrmDeleteInstanceTree(SlapOSTestCaseMixinWithAbort):
def createInstanceTree(self): def createInstanceTree(self):
new_id = self.generateNewId() new_id = self.generateNewId()
instance_tree = self.portal.instance_tree_module\ instance_tree = self.portal.instance_tree_module\
.template_instance_tree.Base_createCloneDocument(batch_mode=1) .newContent(portal_type="Instance Tree")
instance_tree.edit( instance_tree.edit(
reference="TESTHS-%s" % new_id, reference="TESTHS-%s" % new_id,
) )
...@@ -1764,8 +1764,8 @@ class TestSlapOSCrmMonitoringCheckInstanceInError(SlapOSTestCaseMixinWithAbort): ...@@ -1764,8 +1764,8 @@ class TestSlapOSCrmMonitoringCheckInstanceInError(SlapOSTestCaseMixinWithAbort):
person = self.portal.person_module.template_member\ person = self.portal.person_module.template_member\
.Base_createCloneDocument(batch_mode=1) .Base_createCloneDocument(batch_mode=1)
instance_tree = self.portal\ instance_tree = self.portal\
.instance_tree_module.template_instance_tree\ .instance_tree_module\
.Base_createCloneDocument(batch_mode=1) .newContent(portal_type="Instance Tree")
instance_tree.validate() instance_tree.validate()
new_id = self.generateNewId() new_id = self.generateNewId()
instance_tree.edit( instance_tree.edit(
...@@ -2018,8 +2018,8 @@ class TestSlaposCrmUpdateSupportRequestState(SlapOSTestCaseMixinWithAbort): ...@@ -2018,8 +2018,8 @@ class TestSlaposCrmUpdateSupportRequestState(SlapOSTestCaseMixinWithAbort):
person = self.portal.person_module.template_member\ person = self.portal.person_module.template_member\
.Base_createCloneDocument(batch_mode=1) .Base_createCloneDocument(batch_mode=1)
instance_tree = self.portal\ instance_tree = self.portal\
.instance_tree_module.template_instance_tree\ .instance_tree_module\
.Base_createCloneDocument(batch_mode=1) .newContent(portal_type="Instance Tree")
instance_tree.validate() instance_tree.validate()
new_id = self.generateNewId() new_id = self.generateNewId()
instance_tree.edit( instance_tree.edit(
......
...@@ -423,7 +423,7 @@ class TestSlapOSInstanceTree_stopFromRegularisationRequest( ...@@ -423,7 +423,7 @@ class TestSlapOSInstanceTree_stopFromRegularisationRequest(
def createInstanceTree(self, project): def createInstanceTree(self, project):
new_id = self.generateNewId() new_id = self.generateNewId()
instance_tree = self.portal.instance_tree_module\ instance_tree = self.portal.instance_tree_module\
.template_instance_tree.Base_createCloneDocument(batch_mode=1) .newContent(portal_type="Instance Tree")
instance_tree.edit( instance_tree.edit(
reference="TESTHS-%s" % new_id, reference="TESTHS-%s" % new_id,
follow_up_value=project follow_up_value=project
...@@ -499,7 +499,7 @@ class TestSlapOSInstanceTree_deleteFromRegularisationRequest( ...@@ -499,7 +499,7 @@ class TestSlapOSInstanceTree_deleteFromRegularisationRequest(
def createInstanceTree(self, project): def createInstanceTree(self, project):
new_id = self.generateNewId() new_id = self.generateNewId()
instance_tree = self.portal.instance_tree_module\ instance_tree = self.portal.instance_tree_module\
.template_instance_tree.Base_createCloneDocument(batch_mode=1) .newContent(portal_type="Instance Tree")
instance_tree.edit( instance_tree.edit(
reference="TESTHS-%s" % new_id, reference="TESTHS-%s" % new_id,
follow_up_value=project follow_up_value=project
......
...@@ -60,8 +60,8 @@ class TestCRMSkinsMixin(SlapOSTestCaseMixinWithAbort): ...@@ -60,8 +60,8 @@ class TestCRMSkinsMixin(SlapOSTestCaseMixinWithAbort):
person = self.portal.person_module.template_member\ person = self.portal.person_module.template_member\
.Base_createCloneDocument(batch_mode=1) .Base_createCloneDocument(batch_mode=1)
instance_tree = self.portal\ instance_tree = self.portal\
.instance_tree_module.template_instance_tree\ .instance_tree_module\
.Base_createCloneDocument(batch_mode=1) .newContent(portal_type="Instance Tree")
instance_tree.validate() instance_tree.validate()
new_id = self.generateNewId() new_id = self.generateNewId()
instance_tree.edit( instance_tree.edit(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment