Commit 5a09a0bb authored by Romain Courteaud's avatar Romain Courteaud

Do not hardcode price value

parent 0e2ded66
...@@ -94,6 +94,7 @@ new_one = False\n ...@@ -94,6 +94,7 @@ new_one = False\n
if (request_software_instance is None):\n if (request_software_instance is None):\n
new_one = True\n new_one = True\n
setup_service_relative_url = portal.portal_preferences.getPreferredInstanceSetupResource()\n setup_service_relative_url = portal.portal_preferences.getPreferredInstanceSetupResource()\n
service = portal.restrictedTraverse(setup_service_relative_url)\n
request_software_instance = portal.getDefaultModule(portal_type=software_instance_portal_type).newContent(\n request_software_instance = portal.getDefaultModule(portal_type=software_instance_portal_type).newContent(\n
portal_type=software_instance_portal_type,\n portal_type=software_instance_portal_type,\n
source_reference=hosting_subscription.getSourceReference(),\n source_reference=hosting_subscription.getSourceReference(),\n
...@@ -129,7 +130,7 @@ if (request_software_instance is None):\n ...@@ -129,7 +130,7 @@ if (request_software_instance is None):\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=1,\n quantity=1,\n
price=0,\n price=service.getSaleSupplyLineBasePrice(),\n
aggregate_value_list=[request_software_instance,\n aggregate_value_list=[request_software_instance,\n
hosting_subscription,\n hosting_subscription,\n
software_release_document\n software_release_document\n
......
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