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
1
Issues
1
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
Roque
erp5
Commits
98475e6f
Commit
98475e6f
authored
Dec 19, 2012
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Configure services the new way, giving them a use
parent
373d7092
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
25 deletions
+38
-25
bt5/erp5_configurator_standard/SkinTemplateItem/portal_skins/erp5_configurator_standard/BusinessConfiguration_setupPreferences.xml
...rator_standard/BusinessConfiguration_setupPreferences.xml
+24
-24
bt5/erp5_configurator_standard/TestTemplateItem/testStandardConfigurationWorkflow.py
...ard/TestTemplateItem/testStandardConfigurationWorkflow.py
+13
-0
bt5/erp5_configurator_standard/bt/revision
bt5/erp5_configurator_standard/bt/revision
+1
-1
No files found.
bt5/erp5_configurator_standard/SkinTemplateItem/portal_skins/erp5_configurator_standard/BusinessConfiguration_setupPreferences.xml
View file @
98475e6f
...
...
@@ -88,34 +88,34 @@ organisation_configurator_item_obj.setPriceCurrency(currency_reference)\n
# XXX I think here is not a good place.(yusei)\n
service_list = (\n
# sale opportunity\n
(\'product\',
\'Product\'
),\n
(\'service\',
\'Service\'
),\n
(\'product\',
dict(title=\'Product\', use=\'crm/sale_opportunity\', )
),\n
(\'service\',
dict(title=\'Service\', use=\'crm/sale_opportunity\', )
),\n
# campaign\n
(\'marketing_campaign\',
\'Marketing Campaign\'
),\n
(\'marketing_survey\',
\'Market Survey\'
),\n
(\'marketing_purchases\',
\'Purchases Campaign\'
),\n
(\'marketing_sales\',
\'Sales Campaign\'
),\n
(\'marketing_other\',
\'Other Marketing Service\'
),\n
(\'marketing_campaign\',
dict(title=\'Marketing Campaign\', use=\'crm/campaign\', )
),\n
(\'marketing_survey\',
dict(title=\'Market Survey\', use=\'crm/campaign\', )
),\n
(\'marketing_purchases\',
dict(title=\'Purchases Campaign\', use=\'crm/campaign\', )
),\n
(\'marketing_sales\',
dict(title=\'Sales Campaign\', use=\'crm/campaign\', )
),\n
(\'marketing_other\',
dict(title=\'Other Marketing Service\', use=\'crm/campaign\', )
),\n
# support request\n
(\'support_administrative\',
\'Administrative Support\'
),\n
(\'support_financial\',
\'Financial Support\'
),\n
(\'support_it\',
\'IT Support\'
),\n
(\'support_other\',
\'Other Support Service\'
),\n
(\'support_administrative\',
dict(title=\'Administrative Support\', use=\'crm/support_request\', )
),\n
(\'support_financial\',
dict(title=\'Financial Support\', use=\'crm/support_request\', )
),\n
(\'support_it\',
dict(title=\'IT Support\', use=\'crm/support_request\', )
),\n
(\'support_other\',
dict(title=\'Other Support Service\', use=\'crm/support_request\', )
),\n
# meeting\n
(\'organisation_conference\',
\'Conference\'
),\n
(\'organisation_partnership\',
\'Partnership Meeting\'
),\n
(\'organisation_purchases\',
\'Purchases Meeting\'
),\n
(\'organisation_project\',
\'Project Meeting\'
),\n
(\'organisation_sales\',
\'Sales Meeting\'
),\n
(\'organisation_other\',
\'Other Meeting\'
),\n
(\'organisation_conference\',
dict(title=\'Conference\', use=\'crm/meeting\', )
),\n
(\'organisation_partnership\',
dict(title=\'Partnership Meeting\', use=\'crm/meeting\', )
),\n
(\'organisation_purchases\',
dict(title=\'Purchases Meeting\', use=\'crm/meeting\', )
),\n
(\'organisation_project\',
dict(title=\'Project Meeting\', use=\'crm/meeting\', )
),\n
(\'organisation_sales\',
dict(title=\'Sales Meeting\', use=\'crm/meeting\', )
),\n
(\'organisation_other\',
dict(title=\'Other Meeting\', use=\'crm/meeting\', )
),\n
# event\n
(\'event_complaint\',
\'Complaint\'
),\n
(\'event_announcement\',
\'Announcement\'
),\n
(\'event_inquiry\',
\'Inquiry\'
),\n
(\'event_advertisement\',
\'Advertisement\'
),\n
(\'event_spam\',
\'Spam\'
),\n
(\'event_information\',
\'Information\'
),\n
(\'event_other\',
\'Other event\'
),\n
(\'event_complaint\',
dict(title=\'Complaint\', use=\'crm/event\', )
),\n
(\'event_announcement\',
dict(title=\'Announcement\', use=\'crm/event\', )
),\n
(\'event_inquiry\',
dict(title=\'Inquiry\', use=\'crm/event\', )
),\n
(\'event_advertisement\',
dict(title=\'Advertisement\', use=\'crm/event\', )
),\n
(\'event_spam\',
dict(title=\'Spam\', use=\'crm/event\', )
),\n
(\'event_information\',
dict(title=\'Information\', use=\'crm/event\', )
),\n
(\'event_other\',
dict(title=\'Other event\', use=\'crm/event\', )
),\n
)\n
configuration_save.addConfigurationItem("Service Configurator Item",\n
configuration_list=service_list)\n
...
...
bt5/erp5_configurator_standard/TestTemplateItem/testStandardConfigurationWorkflow.py
View file @
98475e6f
...
...
@@ -49,6 +49,7 @@ class StandardConfigurationMixin(TestLiveConfiguratorWorkflowMixin):
stepCheckPersonInformationList
stepCheckValidOrganisationList
stepCheckValidCurrencyList
stepCheckValidServiceList
stepCheckAlarmList
stepCheckPublicGadgetList
stepCheckPreferenceList
...
...
@@ -283,6 +284,18 @@ class StandardConfigurationMixin(TestLiveConfiguratorWorkflowMixin):
self
.
assertEquals
(
'validated'
,
currency
.
getValidationState
())
currency
.
Base_checkConsistency
()
def
stepCheckValidServiceList
(
self
,
sequence
=
None
,
sequence_list
=
None
,
**
kw
):
"""
Check if after configuration the Service objects are validated.
"""
business_configuration
=
sequence
.
get
(
"business_configuration"
)
service_list
=
self
.
getBusinessConfigurationObjectList
(
business_configuration
,
'Service'
)
self
.
assertNotEquals
(
len
(
service_list
),
0
)
for
service
in
service_list
:
self
.
assertEquals
(
'validated'
,
service
.
getValidationState
())
self
.
assertNotEquals
(
None
,
service
.
getUseValue
())
service
.
Base_checkConsistency
()
def
stepCheckAlarmList
(
self
,
sequence
=
None
,
sequence_list
=
None
,
**
kw
):
"""
Check if after configuration the Alarms objects are enabled.
...
...
bt5/erp5_configurator_standard/bt/revision
View file @
98475e6f
646
\ No newline at end of file
659
\ 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