Commit 37444d17 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_accounting: fixup source definition when generate aggregated Sale Packing Lists

parent 725c3231
......@@ -55,7 +55,7 @@ for movement in movement_list:
portal_type="Simulation Movement",
quantity=movement.getQuantity(),
resource=movement.getResource(),
source=movement.getDestination(),
source=movement.getSource(),
destination=movement.getDestination(),
source_section=movement.getSourceSection(),
destination_section=movement.getDestination(),
......
......@@ -6,7 +6,7 @@ portal = context.getPortalObject()
def newPackingList(movement, causality, message):
delivery = portal.sale_packing_list_module.newContent(
portal_type='Sale Packing List',
source=movement.getDestination(),
source=movement.getSource(),
destination=movement.getDestination(),
source_section=movement.getSourceSection(),
destination_section=movement.getDestination(),
......
......@@ -1262,7 +1262,7 @@ class TestSlapOSAggregatedDeliveryBuilder(SlapOSTestCaseMixin):
'destination_decision/%s' % person.getRelativeUrl(),
'destination_section/%s' % person.getRelativeUrl(),
'price_currency/currency_module/EUR',
'source/%s' % person.getRelativeUrl(),
'source/organisation_module/slapos',
'source_section/organisation_module/slapos',
'specialise/sale_trade_condition_module/'
'slapos_aggregated_trade_condition'],
......
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