Commit bb829bc2 authored by Romain Courteaud's avatar Romain Courteaud

slapos_accounting: automated ledger path

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