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
Xavier Thompson
erp5
Commits
5165f145
Commit
5165f145
authored
Jan 26, 2022
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_configurator_standard: enable career constraint
parent
ec55733a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
bt5/erp5_configurator_standard/SkinTemplateItem/portal_skins/erp5_configurator_standard/BusinessConfiguration_displayDownload.py
...gurator_standard/BusinessConfiguration_displayDownload.py
+4
-0
bt5/erp5_configurator_standard/TestTemplateItem/portal_components/test.erp5.testStandardConfigurationWorkflow.py
...components/test.erp5.testStandardConfigurationWorkflow.py
+9
-0
No files found.
bt5/erp5_configurator_standard/SkinTemplateItem/portal_skins/erp5_configurator_standard/BusinessConfiguration_displayDownload.py
View file @
5165f145
...
...
@@ -29,3 +29,7 @@ configuration_save.addConfigurationItem("Portal Type Configurator Item",
configuration_save
.
addConfigurationItem
(
"Portal Type Configurator Item"
,
target_portal_type
=
'Currency'
,
add_propertysheet_list
=
(
'CurrencyConstraint'
,))
configuration_save
.
addConfigurationItem
(
"Portal Type Configurator Item"
,
target_portal_type
=
'Career'
,
add_propertysheet_list
=
(
'CareerConstraint'
,))
bt5/erp5_configurator_standard/TestTemplateItem/portal_components/test.erp5.testStandardConfigurationWorkflow.py
View file @
5165f145
...
...
@@ -202,6 +202,7 @@ class StandardConfigurationMixin(TestLiveConfiguratorWorkflowMixin):
"""
Check if after the configuration the Person objects are validated.
The Assignments must be opened and valid.
Employee number is defined
"""
business_configuration
=
sequence
.
get
(
"business_configuration"
)
person_list
=
self
.
getBusinessConfigurationObjectList
(
business_configuration
,
'Person'
)
...
...
@@ -217,6 +218,14 @@ class StandardConfigurationMixin(TestLiveConfiguratorWorkflowMixin):
self
.
assertNotEquals
(
None
,
assignment
.
getStopDate
())
self
.
assertEqual
(
assignment
.
getGroup
(),
"my_group"
)
assignment
.
Base_checkConsistency
()
current_career
=
person
.
getDefaultCareerValue
()
employee_number
=
current_career
.
getReference
()
self
.
assertNotEqual
(
employee_number
,
None
)
self
.
assertEqual
(
len
(
current_career
.
checkConsistency
()),
0
)
current_career
.
edit
(
reference
=
''
)
self
.
assertEqual
(
len
(
current_career
.
checkConsistency
()),
1
)
current_career
.
edit
(
reference
=
employee_number
)
def
stepCheckPersonInformationList
(
self
,
sequence
=
None
,
sequence_list
=
None
,
**
kw
):
"""
...
...
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