Commit a5f725d2 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_accounting: Add backward compatibility since the change on Source

    The source was changes to be same as source_section
parent 270e36e3
......@@ -48,6 +48,9 @@ for movement in movement_list:
# we create a separated Sale Packing List for it.
delivery = newPackingList(movement, causality, 'New aggregated delivery for subscription')
if delivery is not None and delivery.getSource() != movement.getSource():
delivery.setSource(movement.getSource())
person_delivery_mapping["%s---%s---%s" % (person.getUid(), causality, specialise_uid)] = delivery
return person_delivery_mapping.values()
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