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
0
Merge Requests
0
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
Titouan Soulard
slapos.core
Commits
aab5f912
Commit
aab5f912
authored
Sep 28, 2022
by
Romain Courteaud
🐙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_erp5: set the aggregate value on the Open Order Sale
parent
c72175c2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
11 deletions
+7
-11
master/bt5/slapos_erp5/TestTemplateItem/portal_components/test.erp5.testSlapOSERP5VirtualMasterScenario.py
...mponents/test.erp5.testSlapOSERP5VirtualMasterScenario.py
+7
-11
No files found.
master/bt5/slapos_erp5/TestTemplateItem/portal_components/test.erp5.testSlapOSERP5VirtualMasterScenario.py
View file @
aab5f912
...
...
@@ -365,17 +365,8 @@ class TestSlapOSVirtualMasterScenario(DefaultScenarioMixin):
resource_vcl
.
sort
()
open_order_line
=
open_sale_order
.
newContent
(
portal_type
=
"Open Sale Order Line"
,
#quantity=10,
#price=2,
resource_value
=
software_product
,
aggregate_value
=
[
hosting_subscription
,
instance_tree
],
variation_category_list
=
resource_vcl
# XXX constraint
#software_type_value=software_type,
#software_release_value=software_release,
)
...
...
@@ -392,7 +383,11 @@ class TestSlapOSVirtualMasterScenario(DefaultScenarioMixin):
price
=
3
,
quantity
=
4
,
predicate_category_list
=
cell_key
,
variation_category_list
=
cell_key
variation_category_list
=
cell_key
,
aggregate_value
=
[
hosting_subscription
,
instance_tree
],
)
open_sale_order
.
order
()
...
...
@@ -435,9 +430,10 @@ class TestSlapOSVirtualMasterScenario(DefaultScenarioMixin):
# 1 software product
# acquisition...
# 1 open order line
# 1 open order cell
related_object_list
=
project
.
Base_getRelatedObjectList
(
**
{
'category.category_strict_membership'
:
1
})
assert
len
(
related_object_list
)
==
1
4
,
[
x
.
getRelativeUrl
()
for
x
in
related_object_list
]
assert
len
(
related_object_list
)
==
1
5
,
[
x
.
getRelativeUrl
()
for
x
in
related_object_list
]
self
.
stepcheckERP5Consistency
()
...
...
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