Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
Léo-Paul Géneau
erp5
Commits
5e3c03c3
Commit
5e3c03c3
authored
Aug 29, 2014
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testStandardConfigurationWorkflow: create a valid sale order now that we check consistency
parent
ff167d57
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
bt5/erp5_configurator_standard/TestTemplateItem/portal_components/test.erp5.testStandardConfigurationWorkflow.py
...components/test.erp5.testStandardConfigurationWorkflow.py
+14
-0
bt5/erp5_configurator_standard/bt/revision
bt5/erp5_configurator_standard/bt/revision
+1
-1
No files found.
bt5/erp5_configurator_standard/TestTemplateItem/portal_components/test.erp5.testStandardConfigurationWorkflow.py
View file @
5e3c03c3
...
@@ -934,6 +934,12 @@ class StandardConfigurationMixin(TestLiveConfiguratorWorkflowMixin):
...
@@ -934,6 +934,12 @@ class StandardConfigurationMixin(TestLiveConfiguratorWorkflowMixin):
portal
=
self
.
getPortal
()
portal
=
self
.
getPortal
()
module
=
portal
.
sale_order_module
module
=
portal
.
sale_order_module
business_configuration
=
sequence
.
get
(
'business_configuration'
)
business_configuration
=
sequence
.
get
(
'business_configuration'
)
organisation_list
=
self
.
getBusinessConfigurationObjectList
(
business_configuration
,
'Organisation'
)
self
.
assertNotEquals
(
len
(
organisation_list
),
0
)
organisation
=
organisation_list
[
0
]
self
.
assertEqual
(
'validated'
,
organisation
.
getValidationState
())
sale_trade_condition
=
\
sale_trade_condition
=
\
self
.
getBusinessConfigurationObjectList
(
business_configuration
,
self
.
getBusinessConfigurationObjectList
(
business_configuration
,
'Sale Trade Condition'
)[
0
]
'Sale Trade Condition'
)[
0
]
...
@@ -954,6 +960,10 @@ class StandardConfigurationMixin(TestLiveConfiguratorWorkflowMixin):
...
@@ -954,6 +960,10 @@ class StandardConfigurationMixin(TestLiveConfiguratorWorkflowMixin):
quantity_unit
=
'unit/piece'
,
quantity_unit
=
'unit/piece'
,
individual_variation_base_category
=
'variation'
,
individual_variation_base_category
=
'variation'
,
base_contribution
=
'base_amount/taxable'
)
base_contribution
=
'base_amount/taxable'
)
client
=
portal
.
organisation_module
.
newContent
(
portal_type
=
'Organisation'
)
client
.
validate
()
self
.
tic
()
self
.
tic
()
resource
.
validate
()
resource
.
validate
()
self
.
tic
()
self
.
tic
()
...
@@ -962,6 +972,10 @@ class StandardConfigurationMixin(TestLiveConfiguratorWorkflowMixin):
...
@@ -962,6 +972,10 @@ class StandardConfigurationMixin(TestLiveConfiguratorWorkflowMixin):
order
=
module
.
newContent
(
order
=
module
.
newContent
(
portal_type
=
'Sale Order'
,
portal_type
=
'Sale Order'
,
specialise
=
(
sale_trade_condition
.
getRelativeUrl
(),),
specialise
=
(
sale_trade_condition
.
getRelativeUrl
(),),
destination_value
=
client
,
destination_section_value
=
client
,
source_value
=
organisation
,
source_section_value
=
organisation
,
destination_decision
=
destination_decision
.
getRelativeUrl
(),
destination_decision
=
destination_decision
.
getRelativeUrl
(),
destination_administration
=
destination_administration
.
getRelativeUrl
(),
destination_administration
=
destination_administration
.
getRelativeUrl
(),
start_date
=
start_date
,
start_date
=
start_date
,
...
...
bt5/erp5_configurator_standard/bt/revision
View file @
5e3c03c3
670
671
\ No newline at end of file
\ No newline at end of file
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