Commit b0e31219 authored by Romain Courteaud's avatar Romain Courteaud

slapos_accounting: link Hosting Subscription to project

parent acb2f6ea
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
<portal_type id="Hosting Subscription"> <portal_type id="Hosting Subscription">
<item>SlapOSAccountingHostingSubscriptionConstraint</item> <item>SlapOSAccountingHostingSubscriptionConstraint</item>
<item>SlapOSLedgerConstraint</item> <item>SlapOSLedgerConstraint</item>
<item>SlapOSVirtualMasterConstraint</item>
</portal_type> </portal_type>
<portal_type id="Internal Invoice Transaction"> <portal_type id="Internal Invoice Transaction">
<item>SlapOSLedgerConstraint</item> <item>SlapOSLedgerConstraint</item>
......
...@@ -188,6 +188,7 @@ if instance_tree.getCausalityState() == 'diverged': ...@@ -188,6 +188,7 @@ if instance_tree.getCausalityState() == 'diverged':
hosting_subscription = portal.hosting_subscription_module.newContent( hosting_subscription = portal.hosting_subscription_module.newContent(
portal_type="Hosting Subscription", portal_type="Hosting Subscription",
title=instance_tree.getTitle(), title=instance_tree.getTitle(),
follow_up_value=instance_tree.getFollowUpValue(),
ledger_value=portal.portal_categories.ledger.automated, ledger_value=portal.portal_categories.ledger.automated,
) )
hosting_subscription.validate() hosting_subscription.validate()
......
...@@ -9,6 +9,7 @@ Cloud Contract | SlapOSCloudContractAccounting ...@@ -9,6 +9,7 @@ Cloud Contract | SlapOSCloudContractAccounting
Computer Consumption TioXML File | SortIndex Computer Consumption TioXML File | SortIndex
Hosting Subscription | SlapOSAccountingHostingSubscriptionConstraint Hosting Subscription | SlapOSAccountingHostingSubscriptionConstraint
Hosting Subscription | SlapOSLedgerConstraint Hosting Subscription | SlapOSLedgerConstraint
Hosting Subscription | SlapOSVirtualMasterConstraint
Internal Invoice Transaction | SlapOSLedgerConstraint Internal Invoice Transaction | SlapOSLedgerConstraint
Internal Invoice Transaction | SlapOSVirtualMasterSourceProjectConstraint Internal Invoice Transaction | SlapOSVirtualMasterSourceProjectConstraint
Open Sale Order Line | SlapOSAccountingOpenSaleOrderLineConstraint Open Sale Order Line | SlapOSAccountingOpenSaleOrderLineConstraint
......
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