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
Hugo Ricateau
erp5
Commits
f3736094
Commit
f3736094
authored
Dec 19, 2012
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new way of setting CRM preferences
parent
c746f9dd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
33 deletions
+52
-33
bt5/erp5_configurator_standard/SkinTemplateItem/portal_skins/erp5_configurator_standard/BusinessConfiguration_setupPreferences.xml
...rator_standard/BusinessConfiguration_setupPreferences.xml
+9
-33
bt5/erp5_configurator_standard/TestTemplateItem/testStandardConfigurationWorkflow.py
...ard/TestTemplateItem/testStandardConfigurationWorkflow.py
+43
-0
No files found.
bt5/erp5_configurator_standard/SkinTemplateItem/portal_skins/erp5_configurator_standard/BusinessConfiguration_setupPreferences.xml
View file @
f3736094
...
...
@@ -159,38 +159,14 @@ configuration_save.addConfigurationItem(\n
# some preparation\n
system_prefs = dict(\n
# CRM\n
preferred_campaign_resource_list = [\n
\'service_module/marketing_campaign\',\n
\'service_module/marketing_survey\',\n
\'service_module/marketing_purchases\',\n
\'service_module/marketing_sales\',\n
\'service_module/marketing_other\',],\n
preferred_event_resource_list = [\n
\'service_module/event_complaint\',\n
\'service_module/event_announcement\',\n
\'service_module/event_inquiry\',\n
\'service_module/event_advertisement\',\n
\'service_module/event_spam\',\n
\'service_module/event_information\',\n
\'service_module/event_other\',],\n
preferred_meeting_resource_list = [\n
\'service_module/organisation_conference\',\n
\'service_module/organisation_partnership\',\n
\'service_module/organisation_purchases\',\n
\'service_module/organisation_project\',\n
\'service_module/organisation_sales\',\n
\'service_module/organisation_other\',],\n
preferred_sale_opportunity_resource_list = [\n
\'service_module/product\',\n
\'service_module/service\',],\n
preferred_support_request_resource_list = [\n
\'service_module/support_administrative\',\n
\'service_module/support_financial\',\n
\'service_module/support_it\',\n
\'service_module/support_other\',],\n
preferred_campaign_use_list = [\'use/crm/campaign\'],\n
preferred_event_use_list = [\'use/crm/event\'],\n
preferred_meeting_use_list = [\'use/crm/meeting\'],\n
preferred_sale_opportunity_use_list = [\'use/crm/sale_opportunity\'],\n
preferred_support_request_use_list = [\'use/crm/support_request\'],\n
preferred_event_sender_email = preferred_event_sender_email,\n
preferred_event_assessment_form_id_list = [],\n
#
dms
\n
#
DMS
\n
# XXX-Luke: (proposal) Allow to define, maybe use some magic of\n
# representation\n
preferred_document_file_name_regular_expression = \\\n
...
...
@@ -202,7 +178,7 @@ system_prefs = dict(\n
preferred_document_classification = \'collaborative/team\',\n
preferred_synchronous_metadata_discovery = True,\n
preferred_redirect_to_document = True,\n
#
pdm
\n
#
PDM
\n
preferred_product_individual_variation_base_category_list = [\'variation\'],\n
preferred_component_individual_variation_base_category_list = [\'variation\'],\n
preferred_service_individual_variation_base_category_list = [\'variation\'],\n
...
...
@@ -217,8 +193,8 @@ system_prefs = dict(\n
configuration_save.addConfigurationItem(\n
\'System Preference Configurator Item\',\n
object_id = \'default_configurator_system_preference\',\n
description="The default system parameters for the site are set on this
\'
\\\n
\'
preference",\n
description="The default system parameters for the site are set on this
"
\\\n
"
preference",\n
title="Default Configurator System Site Preference",\n
**system_prefs)\n
\n
...
...
bt5/erp5_configurator_standard/TestTemplateItem/testStandardConfigurationWorkflow.py
View file @
f3736094
...
...
@@ -70,6 +70,8 @@ class StandardConfigurationMixin(TestLiveConfiguratorWorkflowMixin):
stepViewAddGadget
stepViewEventModule
stepAddEvent
stepCheckEventResourceItemList
stepCheckTicketResourceItemList
stepSentEventWorkflow
stepViewAccountModule
stepAddAccountModule
...
...
@@ -381,6 +383,47 @@ class StandardConfigurationMixin(TestLiveConfiguratorWorkflowMixin):
self
.
assertEquals
([
'use/trade/container'
],
preference_tool
.
getPreferredPackingUseList
())
self
.
assertEquals
([
'use/trade/tax'
],
preference_tool
.
getPreferredTaxUseList
())
# CRM
self
.
assertEquals
([
'use/crm/event'
],
preference_tool
.
getPreferredEventUseList
())
self
.
assertEquals
([
'use/crm/campaign'
],
preference_tool
.
getPreferredCampaignUseList
())
self
.
assertEquals
([
'use/crm/sale_opportunity'
],
preference_tool
.
getPreferredSaleOpportunityUseList
())
self
.
assertEquals
([
'use/crm/support_request'
],
preference_tool
.
getPreferredSupportRequestUseList
())
self
.
assertEquals
([
'use/crm/meeting'
],
preference_tool
.
getPreferredMeetingUseList
())
def
stepCheckEventResourceItemList
(
self
,
sequence
=
None
,
sequence_list
=
None
):
self
.
assertTrue
(
self
.
all_username_list
)
for
username
in
self
.
all_username_list
:
for
event_type
in
(
'Visit'
,
'Web Message'
,
'Letter'
,
'Note'
,
'Phone Call'
,
'Mail Message'
,
'Fax Message'
):
self
.
_loginAsUser
(
username
)
event
=
self
.
portal
.
event_module
.
newContent
(
portal_type
=
event_type
)
self
.
assertTrue
((
'Complaint'
,
'service_module/event_complaint'
)
in
event
.
Event_getResourceItemList
())
def
stepCheckTicketResourceItemList
(
self
,
sequence
=
None
,
sequence_list
=
None
):
self
.
assertTrue
(
self
.
all_username_list
)
for
username
in
self
.
all_username_list
:
self
.
_loginAsUser
(
username
)
ticket
=
self
.
portal
.
support_request_module
.
newContent
(
portal_type
=
'Support Request'
)
self
.
assertTrue
((
'Financial Support'
,
'service_module/support_financial'
)
in
ticket
.
Ticket_getResourceItemList
())
ticket
=
self
.
portal
.
meeting_module
.
newContent
(
portal_type
=
'Meeting'
)
self
.
assertTrue
((
'Conference'
,
'service_module/organisation_conference'
)
in
ticket
.
Ticket_getResourceItemList
())
ticket
=
self
.
portal
.
sale_opportunity_module
.
newContent
(
portal_type
=
'Sale Opportunity'
)
self
.
assertTrue
((
'Product'
,
'service_module/product'
)
in
ticket
.
Ticket_getResourceItemList
())
ticket
=
self
.
portal
.
campaign_module
.
newContent
(
portal_type
=
'Campaign'
)
self
.
assertTrue
((
'Marketing Campaign'
,
'service_module/marketing_campaign'
)
in
ticket
.
Ticket_getResourceItemList
())
def
stepCheckModulesBusinessApplication
(
self
,
sequence
=
None
,
sequence_list
=
None
,
**
kw
):
"""
Test modules business application.
...
...
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