Commit f30637ca authored by Romain Courteaud's avatar Romain Courteaud

slapos_subscription_request: improve software product/release

parent 0e5d2e77
......@@ -268,7 +268,14 @@ return dict(vads_url_already_registered="%s/already_registered" % (payment_trans
software_product = self.portal.software_product_module.newContent(
portal_type="Software Product",
title="TestSoftwareProduct",
follow_value=self.subscription_project
follow_up_value=self.subscription_project,
use='trade/sale',
quantity_unit='unit/piece',
product_line='cloud/subscription',
base_contribution_list=[
'base_amount/invoicing/discounted',
'base_amount/invoicing/taxable'
]
)
software_product.validate()
......@@ -277,7 +284,7 @@ return dict(vads_url_already_registered="%s/already_registered" % (payment_trans
title="TestSoftwareRelease",
url_string=url_string,
aggregate_value=software_product,
follow_value=self.subscription_project
follow_up_value=self.subscription_project
)
software_release.share()
......
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