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

slapos_subscription_request: factorize to create Subscription Change Request

parent 246a0abb
......@@ -110,8 +110,8 @@ else:
if not price:
raise AssertionError('Can not find a price to generate the Subscription Request (%s)' % tmp_sale_order.getSpecialiseValue())
subscription_request = portal.subscription_request_module.newContent(
portal_type='Subscription Request',
subscription_request = portal.getDefaultModuleValue(portal_type).newContent(
portal_type=portal_type,
temp_object=temp_object,
destination_value=subscriber_person_value,
# Do not set a default destination section if it is not defined on a trade condition
......
......@@ -50,7 +50,7 @@
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>subscriber_person_value, variation_category_list, project_value, currency_value=None, default_price=None, temp_object=False</string> </value>
<value> <string>subscriber_person_value, variation_category_list, project_value, currency_value=None, default_price=None, temp_object=False, portal_type=\'Subscription Request\'</string> </value>
</item>
<item>
<key> <string>id</string> </key>
......
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