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
a90e99e2
Commit
a90e99e2
authored
Feb 23, 2024
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_crm: test: only payable services are destroyed by the subscription request
parent
d9baa528
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
6 deletions
+26
-6
master/bt5/slapos_crm/TestTemplateItem/portal_components/test.erp5.testSlapOSCRMAlarm.py
...ateItem/portal_components/test.erp5.testSlapOSCRMAlarm.py
+26
-6
No files found.
master/bt5/slapos_crm/TestTemplateItem/portal_components/test.erp5.testSlapOSCRMAlarm.py
View file @
a90e99e2
...
@@ -1099,10 +1099,10 @@ class TestSlapOSCrmDeleteInstanceTree(SlapOSTestCaseMixinWithAbort):
...
@@ -1099,10 +1099,10 @@ class TestSlapOSCrmDeleteInstanceTree(SlapOSTestCaseMixinWithAbort):
'comment="Visited by InstanceTree_deleteFromRegularisationRequest '
\
'comment="Visited by InstanceTree_deleteFromRegularisationRequest '
\
'%s" % (person))'
)
'%s" % (person))'
)
def
test_RegularisationRequest_deleteInstanceTreeList_script_matchingSubscription
(
self
):
def
test_RegularisationRequest_deleteInstanceTreeList_script_matchingSubscription
(
self
):
project
=
self
.
addProject
()
_
,
_
,
_
,
_
,
_
,
instance_tree
=
\
person
=
self
.
makePerson
(
project
,
index
=
0
,
user
=
0
)
self
.
bootstrapAllocableInstanceTree
(
is_accountable
=
True
,
base_price
=
3
,
)
person
=
instance_tree
.
getDestinationSectionValue
()
ticket
=
self
.
createRegularisationRequest
()
ticket
=
self
.
createRegularisationRequest
()
instance_tree
=
self
.
createInstanceTree
()
ticket
.
edit
(
ticket
.
edit
(
destination_decision_value
=
person
,
destination_decision_value
=
person
,
...
@@ -1110,10 +1110,30 @@ class TestSlapOSCrmDeleteInstanceTree(SlapOSTestCaseMixinWithAbort):
...
@@ -1110,10 +1110,30 @@ class TestSlapOSCrmDeleteInstanceTree(SlapOSTestCaseMixinWithAbort):
)
)
ticket
.
validate
()
ticket
.
validate
()
ticket
.
suspend
()
ticket
.
suspend
()
instance_tree
.
edit
(
destination_section
=
person
.
getRelativeUrl
(),
accounting_transaction
=
self
.
portal
.
accounting_module
.
newContent
(
portal_type
=
"Sale Invoice Transaction"
,
destination_section_value
=
person
,
start_date
=
DateTime
(),
price_currency
=
"currency_module/EUR"
,
resource
=
"currency_module/EUR"
,
ledger
=
"automated"
,
)
)
self
.
tic
()
accounting_transaction
.
newContent
(
portal_type
=
"Invoice Line"
,
aggregate_value_list
=
[
instance_tree
,
self
.
portal
.
hosting_subscription_module
.
newContent
()
]
)
accounting_transaction
.
newContent
(
portal_type
=
"Sale Invoice Transaction Line"
,
quantity
=
1
,
source
=
"account_module/receivable"
)
self
.
portal
.
portal_workflow
.
_jumpToStateFor
(
accounting_transaction
,
'stopped'
)
with
TemporaryAlarmScript
(
self
.
portal
,
'Base_reindexAndSenseAlarm'
,
"'disabled'"
,
attribute
=
'comment'
):
self
.
tic
()
result
=
ticket
.
\
result
=
ticket
.
\
RegularisationRequest_deleteInstanceTreeList
(
'footag'
)
RegularisationRequest_deleteInstanceTreeList
(
'footag'
)
...
...
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