Commit 773c57a1 authored by Tristan Cavelier's avatar Tristan Cavelier

erp5_officejs_support_request_ui: remove useless edit

parent 333a6783
......@@ -7,12 +7,6 @@ now = DateTime()
project_list = portal.portal_catalog(portal_type="Project", id=project) # with id keyword, this function will return a sequence data type which contains one element.
project_object = project_list[0].getObject()
support_request = portal.support_request_module.newContent(
portal_type='Support Request',
title=title,
resource="service_module/" + resource,
)
# support_request.Base_getRelatedPostList
# - Reference = automatically generated - already implemented
......@@ -23,7 +17,10 @@ support_request = portal.support_request_module.newContent(
# - Location = Project related Location
# - Supervisor = Project related Supervisor
support_request.edit(
support_request = portal.support_request_module.newContent(
portal_type='Support Request',
title=title,
resource="service_module/" + resource,
destination_decision_value=logged_in_user_value,
source_decision_value = project_object.getSourceDecisionValue(),
source_section_value = project_object.getSourceSectionValue(),
......
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