Commit 27586a82 authored by Romain Courteaud's avatar Romain Courteaud

slapos_panel: add a Sale Supply Line for the Compute Node price

parent 8c822ef8
...@@ -21,14 +21,14 @@ for sql_software_product in software_product_list: ...@@ -21,14 +21,14 @@ for sql_software_product in software_product_list:
title=sql_software_product.getTitle(), title=sql_software_product.getTitle(),
resource_value=sql_software_product.getObject() resource_value=sql_software_product.getObject()
) )
"""
compute_node_service = portal.restrictedTraverse('service_module/slapos_compute_node_subscription') compute_node_service = portal.restrictedTraverse('service_module/slapos_compute_node_subscription')
sale_supply.newContent( sale_supply.newContent(
portal_type="Sale Supply Line", portal_type="Sale Supply Line",
title=compute_node_service.getTitle(), title=compute_node_service.getTitle(),
resource_value=compute_node_service resource_value=compute_node_service
) )
"""
return sale_supply.Base_redirect( return sale_supply.Base_redirect(
keep_items={'portal_status_message': translateString('New Sale Supply created.')} keep_items={'portal_status_message': translateString('New Sale Supply created.')}
) )
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