Commit cc6953ff authored by Romain Courteaud's avatar Romain Courteaud

Set the quantity unit on the line

parent 6fb784bf
...@@ -99,12 +99,12 @@ if (partition is None):\n ...@@ -99,12 +99,12 @@ if (partition is None):\n
specialise=\'sale_trade_condition_module/vifib_trade_condition\',\n specialise=\'sale_trade_condition_module/vifib_trade_condition\',\n
source="organisation_module/vifib_internet",\n source="organisation_module/vifib_internet",\n
source_section="organisation_module/vifib_internet",\n source_section="organisation_module/vifib_internet",\n
quantity_unit="unit/piece",\n
price_currency="currency_module/EUR",\n price_currency="currency_module/EUR",\n
)\n )\n
sale_order_line = sale_order.newContent(\n sale_order_line = sale_order.newContent(\n
portal_type=sale_order_line_portal_type,\n portal_type=sale_order_line_portal_type,\n
resource=setup_service_relative_url,\n resource=setup_service_relative_url,\n
quantity_unit="unit/piece",\n
quantity=1,\n quantity=1,\n
price=setup_service.getSaleSupplyLineBasePrice(),\n price=setup_service.getSaleSupplyLineBasePrice(),\n
aggregate_value_list=[instance,\n aggregate_value_list=[instance,\n
...@@ -151,7 +151,6 @@ else:\n ...@@ -151,7 +151,6 @@ 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
...@@ -164,6 +163,7 @@ else:\n ...@@ -164,6 +163,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_unit="unit/piece",\n
quantity=1,\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
......
6 7
\ 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