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
c314e059
Commit
c314e059
authored
Mar 21, 2022
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TO SQUASH slapos_*: rename couscous trade condition
parent
142e6d8f
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
35 additions
and
31 deletions
+35
-31
master/bt5/slapos_accounting/PathTemplateItem/sale_trade_condition_module/default_subscription_trade_condition.xml
...condition_module/default_subscription_trade_condition.xml
+5
-5
master/bt5/slapos_accounting/PathTemplateItem/sale_trade_condition_module/default_subscription_trade_condition/subscription_price_eur.xml
...t_subscription_trade_condition/subscription_price_eur.xml
+4
-0
master/bt5/slapos_accounting/SkinTemplateItem/portal_skins/slapos_accounting/Alarm_requestUpdateInstanceTreeOpenSaleOrder.py
...ccounting/Alarm_requestUpdateInstanceTreeOpenSaleOrder.py
+1
-1
master/bt5/slapos_accounting/TestTemplateItem/portal_components/test.erp5.testSlapOSAccountingAlarm.py
.../portal_components/test.erp5.testSlapOSAccountingAlarm.py
+17
-17
master/bt5/slapos_accounting/TestTemplateItem/portal_components/test.erp5.testSlapOSAccountingRule.py
...m/portal_components/test.erp5.testSlapOSAccountingRule.py
+1
-1
master/bt5/slapos_accounting/bt/template_keep_last_workflow_history_only_path_list
...ing/bt/template_keep_last_workflow_history_only_path_list
+1
-1
master/bt5/slapos_accounting/bt/template_path_list
master/bt5/slapos_accounting/bt/template_path_list
+2
-2
master/bt5/slapos_cloud/TestTemplateItem/portal_components/test.erp5.SlapOSTestCaseMixin.py
...teItem/portal_components/test.erp5.SlapOSTestCaseMixin.py
+3
-3
master/bt5/slapos_subscription_request/TestTemplateItem/portal_components/test.erp5.testSlapOSSubscriptionScenario.py
...al_components/test.erp5.testSlapOSSubscriptionScenario.py
+1
-1
No files found.
master/bt5/slapos_accounting/PathTemplateItem/sale_trade_condition_module/
couscous
_trade_condition.xml
→
master/bt5/slapos_accounting/PathTemplateItem/sale_trade_condition_module/
default_subscription
_trade_condition.xml
View file @
c314e059
...
...
@@ -102,7 +102,7 @@
</item>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
couscous
_trade_condition
</string>
</value>
<value>
<string>
default_subscription
_trade_condition
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
...
...
@@ -112,7 +112,7 @@
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
couscous
_trade_condition
</string>
</value>
<value>
<string>
default_subscription
_trade_condition
</string>
</value>
</item>
<item>
<key>
<string>
language
</string>
</key>
...
...
@@ -126,7 +126,7 @@
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Couscous
trade condition
</string>
</value>
<value>
<string>
Default subscription
trade condition
</string>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
...
...
@@ -254,7 +254,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
99
7.40299.33951.46830
</string>
</value>
<value>
<string>
99
9.4006.48979.14984
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -272,7 +272,7 @@
</tuple>
<state>
<tuple>
<float>
164
2600179.81
</float>
<float>
164
8026796.66
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
master/bt5/slapos_accounting/PathTemplateItem/sale_trade_condition_module/
couscous
_trade_condition/subscription_price_eur.xml
→
master/bt5/slapos_accounting/PathTemplateItem/sale_trade_condition_module/
default_subscription
_trade_condition/subscription_price_eur.xml
View file @
c314e059
...
...
@@ -75,6 +75,10 @@
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Sale Supply Line
</string>
</value>
</item>
<item>
<key>
<string>
priced_quantity
</string>
</key>
<value>
<float>
1.0
</float>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Instance Subscription price
</string>
</value>
...
...
master/bt5/slapos_accounting/SkinTemplateItem/portal_skins/slapos_accounting/Alarm_requestUpdateInstanceTreeOpenSaleOrder.py
View file @
c314e059
...
...
@@ -2,7 +2,7 @@ portal = context.getPortalObject()
portal
.
portal_catalog
.
searchAndActivate
(
method_id
=
'InstanceTree_requestUpdateOpenSaleOrder'
,
method_kw
=
dict
(
specialise
=
"sale_trade_condition_module/
couscous
_trade_condition"
,
),
method_kw
=
dict
(
specialise
=
"sale_trade_condition_module/
default_subscription
_trade_condition"
,
),
portal_type
=
"Instance Tree"
,
causality_state
=
"diverged"
,
activate_kw
=
{
'tag'
:
tag
,
'priority'
:
2
},
...
...
master/bt5/slapos_accounting/TestTemplateItem/portal_components/test.erp5.testSlapOSAccountingAlarm.py
View file @
c314e059
...
...
@@ -152,14 +152,14 @@ class TestInstanceTree_requestUpdateOpenSaleOrder(SlapOSTestCaseMixin):
self
.
assertRaises
(
Unauthorized
,
subscription
.
InstanceTree_requestUpdateOpenSaleOrder
,
"sale_trade_condition_module/
couscous
_trade_condition"
,
"sale_trade_condition_module/
default_subscription
_trade_condition"
,
REQUEST
=
{})
def
test_solved_InstanceTree
(
self
):
subscription
=
self
.
portal
.
instance_tree_module
\
.
template_instance_tree
.
Base_createCloneDocument
(
batch_mode
=
1
)
self
.
portal
.
portal_workflow
.
_jumpToStateFor
(
subscription
,
'solved'
)
subscription
.
InstanceTree_requestUpdateOpenSaleOrder
(
specialise
=
"sale_trade_condition_module/
couscous
_trade_condition"
)
subscription
.
InstanceTree_requestUpdateOpenSaleOrder
(
specialise
=
"sale_trade_condition_module/
default_subscription
_trade_condition"
)
self
.
assertEqual
(
subscription
.
getCausalityState
(),
'solved'
)
def
test_empty_InstanceTree
(
self
):
...
...
@@ -174,7 +174,7 @@ class TestInstanceTree_requestUpdateOpenSaleOrder(SlapOSTestCaseMixin):
self
.
tic
()
subscription
.
InstanceTree_requestUpdateOpenSaleOrder
(
specialise
=
"sale_trade_condition_module/
couscous
_trade_condition"
specialise
=
"sale_trade_condition_module/
default_subscription
_trade_condition"
)
self
.
tic
()
self
.
assertEqual
(
subscription
.
getCausalityState
(),
'solved'
)
...
...
@@ -190,7 +190,7 @@ class TestInstanceTree_requestUpdateOpenSaleOrder(SlapOSTestCaseMixin):
sale_trade_condition
=
open_sale_order
.
getSpecialiseValue
()
self
.
assertEqual
(
"sale_trade_condition_module/
couscous
_trade_condition"
,
"sale_trade_condition_module/
default_subscription
_trade_condition"
,
sale_trade_condition
.
getRelativeUrl
()
)
sale_supply_line
=
sale_trade_condition
.
contentValues
(
portql_type
=
"Sale Supply Line"
)[
0
]
...
...
@@ -252,7 +252,7 @@ class TestInstanceTree_requestUpdateOpenSaleOrder(SlapOSTestCaseMixin):
self
.
tic
()
subscription
.
InstanceTree_requestUpdateOpenSaleOrder
(
specialise
=
"sale_trade_condition_module/
couscous
_trade_condition"
specialise
=
"sale_trade_condition_module/
default_subscription
_trade_condition"
)
self
.
tic
()
self
.
assertEqual
(
subscription
.
getCausalityState
(),
'solved'
)
...
...
@@ -271,7 +271,7 @@ class TestInstanceTree_requestUpdateOpenSaleOrder(SlapOSTestCaseMixin):
sale_trade_condition
=
open_sale_order
.
getSpecialiseValue
()
self
.
assertEqual
(
"sale_trade_condition_module/
couscous
_trade_condition"
,
"sale_trade_condition_module/
default_subscription
_trade_condition"
,
sale_trade_condition
.
getRelativeUrl
()
)
sale_supply_line
=
sale_trade_condition
.
contentValues
(
portql_type
=
"Sale Supply Line"
)[
0
]
...
...
@@ -321,7 +321,7 @@ class TestInstanceTree_requestUpdateOpenSaleOrder(SlapOSTestCaseMixin):
self
.
tic
()
subscription
.
InstanceTree_requestUpdateOpenSaleOrder
(
specialise
=
"sale_trade_condition_module/
couscous
_trade_condition"
specialise
=
"sale_trade_condition_module/
default_subscription
_trade_condition"
)
self
.
tic
()
self
.
assertEqual
(
subscription
.
getCausalityState
(),
'solved'
)
...
...
@@ -405,7 +405,7 @@ class TestInstanceTree_requestUpdateOpenSaleOrder(SlapOSTestCaseMixin):
subscription
.
fixConsistency
()
self
.
tic
()
subscription
.
InstanceTree_requestUpdateOpenSaleOrder
(
specialise
=
"sale_trade_condition_module/
couscous
_trade_condition"
)
subscription
.
InstanceTree_requestUpdateOpenSaleOrder
(
specialise
=
"sale_trade_condition_module/
default_subscription
_trade_condition"
)
self
.
tic
()
self
.
assertEqual
(
subscription
.
getCausalityState
(),
'solved'
)
...
...
@@ -438,7 +438,7 @@ class TestInstanceTree_requestUpdateOpenSaleOrder(SlapOSTestCaseMixin):
}]
self
.
tic
()
subscription
.
InstanceTree_requestUpdateOpenSaleOrder
(
specialise
=
"sale_trade_condition_module/
couscous
_trade_condition"
)
subscription
.
InstanceTree_requestUpdateOpenSaleOrder
(
specialise
=
"sale_trade_condition_module/
default_subscription
_trade_condition"
)
self
.
tic
()
open_sale_order_list
=
self
.
portal
.
portal_catalog
(
...
...
@@ -452,7 +452,7 @@ class TestInstanceTree_requestUpdateOpenSaleOrder(SlapOSTestCaseMixin):
sale_trade_condition
=
open_sale_order
.
getSpecialiseValue
()
self
.
assertEqual
(
"sale_trade_condition_module/
couscous
_trade_condition"
,
"sale_trade_condition_module/
default_subscription
_trade_condition"
,
sale_trade_condition
.
getRelativeUrl
()
)
sale_supply_line
=
sale_trade_condition
.
contentValues
(
portql_type
=
"Sale Supply Line"
)[
0
]
...
...
@@ -503,7 +503,7 @@ class TestInstanceTree_requestUpdateOpenSaleOrder(SlapOSTestCaseMixin):
self
.
tic
()
subscription2
.
InstanceTree_requestUpdateOpenSaleOrder
(
specialise
=
"sale_trade_condition_module/
couscous
_trade_condition"
specialise
=
"sale_trade_condition_module/
default_subscription
_trade_condition"
)
self
.
tic
()
...
...
@@ -526,7 +526,7 @@ class TestInstanceTree_requestUpdateOpenSaleOrder(SlapOSTestCaseMixin):
sale_trade_condition2
=
open_sale_order
.
getSpecialiseValue
()
self
.
assertEqual
(
"sale_trade_condition_module/
couscous
_trade_condition"
,
"sale_trade_condition_module/
default_subscription
_trade_condition"
,
sale_trade_condition2
.
getRelativeUrl
()
)
...
...
@@ -591,7 +591,7 @@ class TestInstanceTree_requestUpdateOpenSaleOrder(SlapOSTestCaseMixin):
self
.
portal
.
portal_workflow
.
_jumpToStateFor
(
subscription
,
'validated'
)
self
.
tic
()
subscription
.
InstanceTree_requestUpdateOpenSaleOrder
(
specialise
=
"sale_trade_condition_module/
couscous
_trade_condition"
)
subscription
.
InstanceTree_requestUpdateOpenSaleOrder
(
specialise
=
"sale_trade_condition_module/
default_subscription
_trade_condition"
)
self
.
tic
()
request_time
=
DateTime
(
'2112/01/01'
)
...
...
@@ -605,7 +605,7 @@ class TestInstanceTree_requestUpdateOpenSaleOrder(SlapOSTestCaseMixin):
})
self
.
tic
()
subscription
.
InstanceTree_requestUpdateOpenSaleOrder
(
specialise
=
"sale_trade_condition_module/
couscous
_trade_condition"
)
subscription
.
InstanceTree_requestUpdateOpenSaleOrder
(
specialise
=
"sale_trade_condition_module/
default_subscription
_trade_condition"
)
self
.
tic
()
self
.
assertEqual
(
subscription
.
getCausalityState
(),
'solved'
)
...
...
@@ -640,7 +640,7 @@ class TestInstanceTree_requestUpdateOpenSaleOrder(SlapOSTestCaseMixin):
self
.
assertEqual
(
subscription
.
getCausalityState
(),
'diverged'
)
self
.
tic
()
subscription
.
InstanceTree_requestUpdateOpenSaleOrder
(
specialise
=
"sale_trade_condition_module/
couscous
_trade_condition"
)
subscription
.
InstanceTree_requestUpdateOpenSaleOrder
(
specialise
=
"sale_trade_condition_module/
default_subscription
_trade_condition"
)
self
.
tic
()
self
.
assertEqual
(
subscription
.
getCausalityState
(),
'solved'
)
...
...
@@ -650,7 +650,7 @@ class TestInstanceTree_requestUpdateOpenSaleOrder(SlapOSTestCaseMixin):
self
.
assertEqual
(
subscription
.
getSlapState
(),
'draft'
)
self
.
tic
()
subscription
.
InstanceTree_requestUpdateOpenSaleOrder
(
specialise
=
"sale_trade_condition_module/
couscous
_trade_condition"
)
subscription
.
InstanceTree_requestUpdateOpenSaleOrder
(
specialise
=
"sale_trade_condition_module/
default_subscription
_trade_condition"
)
self
.
tic
()
self
.
assertEqual
(
subscription
.
getCausalityState
(),
'solved'
)
...
...
@@ -666,7 +666,7 @@ class TestInstanceTree_requestUpdateOpenSaleOrder(SlapOSTestCaseMixin):
self
.
portal
.
portal_workflow
.
_jumpToStateFor
(
subscription
,
'destroy_requested'
)
self
.
tic
()
subscription
.
InstanceTree_requestUpdateOpenSaleOrder
(
specialise
=
"sale_trade_condition_module/
couscous
_trade_condition"
)
subscription
.
InstanceTree_requestUpdateOpenSaleOrder
(
specialise
=
"sale_trade_condition_module/
default_subscription
_trade_condition"
)
self
.
tic
()
self
.
assertEqual
(
subscription
.
getCausalityState
(),
'solved'
)
...
...
master/bt5/slapos_accounting/TestTemplateItem/portal_components/test.erp5.testSlapOSAccountingRule.py
View file @
c314e059
...
...
@@ -430,7 +430,7 @@ class TestHostingSubscriptionSimulation(SlapOSTestCaseMixin):
)
self
.
portal
.
portal_workflow
.
_jumpToStateFor
(
self
.
instance_tree
,
'validated'
)
open_order
=
self
.
instance_tree
.
InstanceTree_requestUpdateOpenSaleOrder
(
specialise
=
"sale_trade_condition_module/
couscous
_trade_condition"
specialise
=
"sale_trade_condition_module/
default_subscription
_trade_condition"
)
self
.
initial_date
=
DateTime
(
'2011/02/16'
)
...
...
master/bt5/slapos_accounting/bt/template_keep_last_workflow_history_only_path_list
View file @
c314e059
...
...
@@ -8,7 +8,7 @@ business_process_module/slapos_subscription_business_process
business_process_module/slapos_subscription_business_process/**
currency_module/CNY
currency_module/EUR
sale_trade_condition_module/
couscous
_trade_condition
sale_trade_condition_module/
default_subscription
_trade_condition
sale_trade_condition_module/slapos_aggregated_trade_condition_v3
sale_trade_condition_module/slapos_aggregated_trade_condition_v3/**
sale_trade_condition_module/slapos_aggregated_consumption_trade_condition
...
...
master/bt5/slapos_accounting/bt/template_path_list
View file @
c314e059
...
...
@@ -72,8 +72,8 @@ portal_solvers/Automatic Quantity Adopt Solver/**
sale_packing_list_module/slapos_accounting_instance_delivery_line_template
sale_packing_list_module/slapos_accounting_instance_delivery_line_template/**
sale_packing_list_module/slapos_accounting_instance_delivery_template
sale_trade_condition_module/
couscous
_trade_condition
sale_trade_condition_module/
couscous
_trade_condition/**
sale_trade_condition_module/
default_subscription
_trade_condition
sale_trade_condition_module/
default_subscription
_trade_condition/**
sale_trade_condition_module/slapos_aggregated_consumption_trade_condition
sale_trade_condition_module/slapos_aggregated_consumption_trade_condition/**
sale_trade_condition_module/slapos_aggregated_subscription_trade_condition
...
...
master/bt5/slapos_cloud/TestTemplateItem/portal_components/test.erp5.SlapOSTestCaseMixin.py
View file @
c314e059
...
...
@@ -713,7 +713,7 @@ class SlapOSTestCaseMixin(testSlapOSMixin):
'accounting_module/template_pre_payment_subscription_sale_invoice_transaction'
)
self
.
portal
.
sale_trade_condition_module
.
couscous
_trade_condition
.
edit
(
self
.
portal
.
sale_trade_condition_module
.
default_subscription
_trade_condition
.
edit
(
source_section
=
'organisation_module/slapos'
,
source
=
'organisation_module/slapos'
)
...
...
@@ -764,7 +764,7 @@ class SlapOSTestCaseMixin(testSlapOSMixin):
source_value
=
organisation
)
self
.
portal
.
sale_trade_condition_module
.
couscous
_trade_condition
.
edit
(
self
.
portal
.
sale_trade_condition_module
.
default_subscription
_trade_condition
.
edit
(
source_section_value
=
organisation
,
source_value
=
organisation
)
...
...
@@ -835,7 +835,7 @@ class SlapOSTestCaseMixin(testSlapOSMixin):
source_value
=
fr_organisation
)
self
.
portal
.
sale_trade_condition_module
.
couscous
_trade_condition
.
edit
(
self
.
portal
.
sale_trade_condition_module
.
default_subscription
_trade_condition
.
edit
(
source_section_value
=
fr_organisation
,
source_value
=
fr_organisation
)
...
...
master/bt5/slapos_subscription_request/TestTemplateItem/portal_components/test.erp5.testSlapOSSubscriptionScenario.py
View file @
c314e059
...
...
@@ -1686,7 +1686,7 @@ return dict(vads_url_already_registered="%s/already_registered" % (payment_trans
# Disable on this test the pricing on the template to not generate debt before
# them expected
supply_line
=
self
.
portal
.
sale_trade_condition_module
.
\
couscous
_trade_condition
.
\
default_subscription
_trade_condition
.
\
subscription_price_eur
previous_price
=
supply_line
.
getBasePrice
()
...
...
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