Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Romain Courteaud
slapos.core
Commits
b0e31219
Commit
b0e31219
authored
Nov 16, 2022
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_accounting: link Hosting Subscription to project
parent
acb2f6ea
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
0 deletions
+3
-0
master/bt5/slapos_accounting/PortalTypePropertySheetTemplateItem/property_sheet_list.xml
...rtalTypePropertySheetTemplateItem/property_sheet_list.xml
+1
-0
master/bt5/slapos_accounting/SkinTemplateItem/portal_skins/slapos_accounting/InstanceTree_requestUpdateOpenSaleOrder.py
...pos_accounting/InstanceTree_requestUpdateOpenSaleOrder.py
+1
-0
master/bt5/slapos_accounting/bt/template_portal_type_property_sheet_list
...os_accounting/bt/template_portal_type_property_sheet_list
+1
-0
No files found.
master/bt5/slapos_accounting/PortalTypePropertySheetTemplateItem/property_sheet_list.xml
View file @
b0e31219
...
@@ -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>
...
...
master/bt5/slapos_accounting/SkinTemplateItem/portal_skins/slapos_accounting/InstanceTree_requestUpdateOpenSaleOrder.py
View file @
b0e31219
...
@@ -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
()
...
...
master/bt5/slapos_accounting/bt/template_portal_type_property_sheet_list
View file @
b0e31219
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment