Commit 3ce95702 authored by Romain Courteaud's avatar Romain Courteaud

slapos_accounting: hardcode ledger value on Open Sale Order and Hosting Subscription

parent 3e189aca
......@@ -26,7 +26,8 @@ def newOpenOrder():
activate_kw=activate_kw,
destination=person.getRelativeUrl(),
destination_decision=person.getRelativeUrl(),
title="%s SlapOS Subscription" % person.getTitle()
title="%s SlapOS Subscription" % person.getTitle(),
ledger_value=portal.portal_categories.ledger.accounting.automated,
)
new_open_sale_order.order(activate_kw=activate_kw)
......@@ -71,7 +72,8 @@ if instance_tree.getCausalityState() == 'diverged':
hosting_subscription = portal.hosting_subscription_module.newContent(
portal_type="Hosting Subscription",
title=instance_tree.getTitle()
title=instance_tree.getTitle(),
ledger_value=portal.portal_categories.ledger.accounting.automated,
)
hosting_subscription.validate()
start_date = hosting_subscription.HostingSubscription_calculateSubscriptionStartDate()
......
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