Commit 6fb784bf authored by Romain Courteaud's avatar Romain Courteaud

Fix property on newly created packing list

parent 64706d92
...@@ -151,6 +151,7 @@ else:\n ...@@ -151,6 +151,7 @@ else:\n
source=delivery.getSource(),\n source=delivery.getSource(),\n
source_section=delivery.getSourceSection(),\n source_section=delivery.getSourceSection(),\n
price_currency=delivery.getPriceCurrency(),\n price_currency=delivery.getPriceCurrency(),\n
quantity_unit=delivery.getQuantityUnit(),\n
start_date=DateTime())\n start_date=DateTime())\n
\n \n
if (state == started):\n if (state == started):\n
...@@ -163,7 +164,7 @@ else:\n ...@@ -163,7 +164,7 @@ else:\n
packing_list_line = packing_list.newContent(\n packing_list_line = packing_list.newContent(\n
portal_type=\'Sale Packing List Line\',\n portal_type=\'Sale Packing List Line\',\n
resource=service_relative_url,\n resource=service_relative_url,\n
quantity=service.getQuantity(),\n quantity=1,\n
aggregate_list=delivery.getAggregateList(),\n aggregate_list=delivery.getAggregateList(),\n
# XXX Hardcode price on service\n # XXX Hardcode price on service\n
price=service.getSaleSupplyLineBasePrice(),\n price=service.getSaleSupplyLineBasePrice(),\n
......
5 6
\ No newline at end of file \ 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