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
b5268690
Commit
b5268690
authored
Oct 03, 2022
by
Romain Courteaud
🐙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_erp5: get price from sale supply
parent
10b2144b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
master/bt5/slapos_erp5/TestTemplateItem/portal_components/test.erp5.testSlapOSERP5VirtualMasterScenario.py
...mponents/test.erp5.testSlapOSERP5VirtualMasterScenario.py
+10
-3
No files found.
master/bt5/slapos_erp5/TestTemplateItem/portal_components/test.erp5.testSlapOSERP5VirtualMasterScenario.py
View file @
b5268690
...
@@ -246,12 +246,18 @@ class TestSlapOSVirtualMasterScenario(DefaultScenarioMixin):
...
@@ -246,12 +246,18 @@ class TestSlapOSVirtualMasterScenario(DefaultScenarioMixin):
)
)
software_product
.
validate
()
software_product
.
validate
()
sale_supply
=
self
.
portal
.
sale_supply_module
.
newContent
(
portal_type
=
"Sale Supply"
,
destination_project_value
=
project
,
price_currency
=
"currency_module/EUR"
)
# XXX Put price in sale supply module
# XXX Put price in sale supply module
sale_
trade_condition
.
newContent
(
sale_
supply
.
newContent
(
portal_type
=
"Sale Supply Line"
,
portal_type
=
"Sale Supply Line"
,
base_price
=
9
,
base_price
=
9
,
resource_value
=
software_product
resource_value
=
software_product
)
)
sale_supply
.
validate
()
# some preparation
# some preparation
self
.
logout
()
self
.
logout
()
...
@@ -379,11 +385,12 @@ class TestSlapOSVirtualMasterScenario(DefaultScenarioMixin):
...
@@ -379,11 +385,12 @@ class TestSlapOSVirtualMasterScenario(DefaultScenarioMixin):
# 7 simulation mvt
# 7 simulation mvt
# 1 software product
# 1 software product
# 1 sale trace condition, 1 supply line
# 1 sale trace condition
# 1 supply, 1 supply line
# 1 open order line / 1 cell
# 1 open order line / 1 cell
related_object_list
=
project
.
Base_getRelatedObjectList
(
**
{
'category.category_strict_membership'
:
1
})
related_object_list
=
project
.
Base_getRelatedObjectList
(
**
{
'category.category_strict_membership'
:
1
})
assert
len
(
related_object_list
)
==
2
5
,
[
x
.
getRelativeUrl
()
for
x
in
related_object_list
]
assert
len
(
related_object_list
)
==
2
6
,
[
x
.
getRelativeUrl
()
for
x
in
related_object_list
]
self
.
stepcheckERP5Consistency
()
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