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
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Rafael Monnerat
slapos.core
Commits
8045f3a3
Commit
8045f3a3
authored
Aug 29, 2024
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_panel_ui_test: Create Trade condition for manual accounting
parent
7f38cc0e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
3 deletions
+16
-3
master/bt5/slapos_panel_ui_test/ExtensionTemplateItem/portal_components/extension.erp5.SlapOSPanelUiTest.py
...tem/portal_components/extension.erp5.SlapOSPanelUiTest.py
+14
-1
master/bt5/slapos_panel_ui_test/SkinTemplateItem/portal_skins/slapos_panel_ui_test/ERP5Site_dropBase_queryWechatOrderStatusByTradeNo.xml
...est/ERP5Site_dropBase_queryWechatOrderStatusByTradeNo.xml
+1
-1
master/bt5/slapos_panel_ui_test/SkinTemplateItem/portal_skins/slapos_panel_ui_test/ERP5Site_simulateBase_queryWechatOrderStatusByTradeNo.xml
...ERP5Site_simulateBase_queryWechatOrderStatusByTradeNo.xml
+1
-1
No files found.
master/bt5/slapos_panel_ui_test/ExtensionTemplateItem/portal_components/extension.erp5.SlapOSPanelUiTest.py
View file @
8045f3a3
...
...
@@ -108,6 +108,19 @@ def ERP5Site_bootstrapSlapOSPanelTest(self, step, scenario, customer_login,
)
trade_condition
.
validate
()
# Sale trade condition for Manual Accounting
manual_trade_condition
=
portal
.
sale_trade_condition_module
.
newContent
(
portal_type
=
"Sale Trade Condition"
,
reference
=
"Manual Accounting for %s"
%
organisation
.
getTitle
(),
trade_condition_type
=
"default"
,
# XXX hardcoded
specialise
=
"business_process_module/slapos_manual_accounting_business_process"
,
source_value
=
organisation
,
source_section_value
=
organisation
if
(
scenario
==
'accounting'
)
else
None
,
price_currency_value
=
currency
,
)
manual_trade_condition
.
validate
()
if
scenario
==
'accounting'
:
# Create trade condition for Deposit
...
...
@@ -131,7 +144,7 @@ def ERP5Site_bootstrapSlapOSPanelTest(self, step, scenario, customer_login,
base_price
=
24
,
resource
=
"service_module/slapos_virtual_master_subscription"
)
sale_supply
.
validate
()
sale_supply
.
validate
()
finally
:
setSecurityManager
(
sm
)
...
...
master/bt5/slapos_panel_ui_test/SkinTemplateItem/portal_skins/slapos_panel_ui_test/ERP5Site_dropBase_queryWechatOrderStatusByTradeNo.xml
View file @
8045f3a3
...
...
@@ -25,4 +25,4 @@
</dictionary>
</pickle>
</record>
</ZopeData>
\ No newline at end of file
</ZopeData>
master/bt5/slapos_panel_ui_test/SkinTemplateItem/portal_skins/slapos_panel_ui_test/ERP5Site_simulateBase_queryWechatOrderStatusByTradeNo.xml
View file @
8045f3a3
...
...
@@ -25,4 +25,4 @@
</dictionary>
</pickle>
</record>
</ZopeData>
\ No newline at end of file
</ZopeData>
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