Commit 270e36e3 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_accounting: Fix up generation of Consumption related packing list when project is set

parent 55b5b98b
......@@ -20,9 +20,12 @@ if tioxml_dict is None:
else:
computer = context.getContributorValue(portal_type="Computer")
computer_project = computer.Item_getCurrentProjectValue()
computer_project_document = computer.Item_getCurrentProjectValue()
delivery_title = tioxml_dict['title']
if computer_project_document is not None:
computer_project = computer_project_document.getRelativeUrl()
movement_list = []
for movement in tioxml_dict["movement"]:
reference = movement['reference']
......
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