Commit 912ee502 authored by Boxiang Sun's avatar Boxiang Sun

slapos_cloud: Fixup of ComputerNetwork_createMovement

parent 973a0724
......@@ -18,12 +18,12 @@ resource_value = context.Item_getResourceValue()
if destination_project is None and source_project is not None:
destination_project = source_project.getRelativeUrl()
if destination_section is None:
destination_section = source_section.getRelativeUrl()
if source_section is None:
source_section = context.getSourceAdministration()
if destination_section is None:
destination_section = source_section
source = context.getSourceAdministration()
destination = context.getSourceAdministration()
......@@ -48,7 +48,6 @@ delivery = module.newContent(title="Transfer %s to %s" % (context.getTitle(), de
delivery_line = delivery.newContent(
portal_type=line_portal_type,
title=context.getReference(),
quantity_unit=context.getQuantityUnit(),
resource_value=resource_value)
delivery_line.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