Commit 46af2489 authored by Romain Courteaud's avatar Romain Courteaud

Copy the aggregate value from the sale order line

parent 0ba89e81
......@@ -140,6 +140,7 @@ else:\n
instance.edit(causality_value=packing_list)\n
else:\n
# Create a new packing list from scratch\n
sale_order_line = delivery.contentValues(portal_type=sale_order_line_portal_type)[0]\n
\n
packing_list_module = portal.getDefaultModule(portal_type=\'Sale Packing List\')\n
packing_list = packing_list_module.newContent(\n
......@@ -165,7 +166,7 @@ else:\n
resource=service_relative_url,\n
quantity_unit="unit/piece",\n
quantity=1,\n
aggregate_list=delivery.getAggregateList(),\n
aggregate_list=sale_order_line.getAggregateList(),\n
# XXX Hardcode price on service\n
price=service.getSaleSupplyLineBasePrice(),\n
)\n
......
7
\ No newline at end of file
8
\ No newline at end of file
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