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
Richard
erp5
Commits
1ce20883
Commit
1ce20883
authored
May 20, 2013
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add outcome path portal type and default outcome path on campaign
parent
1ac806f1
Changes
13
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
332 additions
and
1 deletion
+332
-1
bt5/erp5_crm/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml
...eAllowedContentTypeTemplateItem/allowed_content_types.xml
+1
-0
bt5/erp5_crm/PortalTypeHiddenContentTypeTemplateItem/hidden_content_type_list.xml
...iddenContentTypeTemplateItem/hidden_content_type_list.xml
+1
-0
bt5/erp5_crm/PortalTypePropertySheetTemplateItem/property_sheet_list.xml
...rtalTypePropertySheetTemplateItem/property_sheet_list.xml
+1
-0
bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Outcome%20Path.xml
...rm/PortalTypeTemplateItem/portal_types/Outcome%20Path.xml
+82
-0
bt5/erp5_crm/PropertySheetTemplateItem/portal_property_sheets/DefaultOutcomePath.xml
...emplateItem/portal_property_sheets/DefaultOutcomePath.xml
+66
-0
bt5/erp5_crm/PropertySheetTemplateItem/portal_property_sheets/DefaultOutcomePath/outcome_path_property.xml
...perty_sheets/DefaultOutcomePath/outcome_path_property.xml
+152
-0
bt5/erp5_crm/bt/revision
bt5/erp5_crm/bt/revision
+1
-1
bt5/erp5_crm/bt/template_portal_type_allowed_content_type_list
...rp5_crm/bt/template_portal_type_allowed_content_type_list
+1
-0
bt5/erp5_crm/bt/template_portal_type_hidden_content_type_list
...erp5_crm/bt/template_portal_type_hidden_content_type_list
+1
-0
bt5/erp5_crm/bt/template_portal_type_id_list
bt5/erp5_crm/bt/template_portal_type_id_list
+1
-0
bt5/erp5_crm/bt/template_portal_type_property_sheet_list
bt5/erp5_crm/bt/template_portal_type_property_sheet_list
+1
-0
bt5/erp5_crm/bt/template_property_sheet_id_list
bt5/erp5_crm/bt/template_property_sheet_id_list
+1
-0
product/ERP5/tests/testCRM.py
product/ERP5/tests/testCRM.py
+23
-0
No files found.
bt5/erp5_crm/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml
View file @
1ce20883
<allowed_content_type_list>
<allowed_content_type_list>
<portal_type
id=
"Campaign"
>
<portal_type
id=
"Campaign"
>
<item>
Event Path
</item>
<item>
Event Path
</item>
<item>
Outcome Path
</item>
</portal_type>
</portal_type>
<portal_type
id=
"Campaign Module"
>
<portal_type
id=
"Campaign Module"
>
<item>
Campaign
</item>
<item>
Campaign
</item>
...
...
bt5/erp5_crm/PortalTypeHiddenContentTypeTemplateItem/hidden_content_type_list.xml
View file @
1ce20883
<hidden_content_type_list>
<hidden_content_type_list>
<portal_type
id=
"Campaign"
>
<portal_type
id=
"Campaign"
>
<item>
Event Path
</item>
<item>
Event Path
</item>
<item>
Outcome Path
</item>
</portal_type>
</portal_type>
<portal_type
id=
"Event Module"
>
<portal_type
id=
"Event Module"
>
<item>
Acknowledgement
</item>
<item>
Acknowledgement
</item>
...
...
bt5/erp5_crm/PortalTypePropertySheetTemplateItem/property_sheet_list.xml
View file @
1ce20883
<property_sheet_list>
<property_sheet_list>
<portal_type
id=
"Campaign"
>
<portal_type
id=
"Campaign"
>
<item>
DefaultEventPath
</item>
<item>
DefaultEventPath
</item>
<item>
DefaultOutcomePath
</item>
</portal_type>
</portal_type>
<portal_type
id=
"Event Path"
>
<portal_type
id=
"Event Path"
>
<item>
EventPath
</item>
<item>
EventPath
</item>
...
...
bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Outcome%20Path.xml
0 → 100644
View file @
1ce20883
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Base Type"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
acquire_local_roles
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
content_icon
</string>
</key>
<value>
<string>
document.gif
</string>
</value>
</item>
<item>
<key>
<string>
content_meta_type
</string>
</key>
<value>
<string>
ERP5 Ticket
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
factory
</string>
</key>
<value>
<string>
addTicket
</string>
</value>
</item>
<item>
<key>
<string>
filter_content_types
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
<item>
<key>
<string>
group_list
</string>
</key>
<value>
<tuple>
<string>
path
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
Outcome Path
</string>
</value>
</item>
<item>
<key>
<string>
init_script
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
permission
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
type_class
</string>
</key>
<value>
<string>
Path
</string>
</value>
</item>
<item>
<key>
<string>
type_interface
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
type_mixin
</string>
</key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_crm/PropertySheetTemplateItem/portal_property_sheets/DefaultOutcomePath.xml
0 → 100644
View file @
1ce20883
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Property Sheet"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_count
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
_mt_index
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
_tree
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAQ=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
DefaultOutcomePath
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Property Sheet
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"Length"
module=
"BTrees.Length"
/>
</pickle>
<pickle>
<int>
0
</int>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"OOBTree"
module=
"BTrees.OOBTree"
/>
</pickle>
<pickle>
<none/>
</pickle>
</record>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<pickle>
<global
name=
"OOBTree"
module=
"BTrees.OOBTree"
/>
</pickle>
<pickle>
<none/>
</pickle>
</record>
</ZopeData>
bt5/erp5_crm/PropertySheetTemplateItem/portal_property_sheets/DefaultOutcomePath/outcome_path_property.xml
0 → 100644
View file @
1ce20883
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Acquired Property"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_local_properties
</string>
</key>
<value>
<tuple>
<dictionary>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
acquisition_depends
</string>
</value>
</item>
<item>
<key>
<string>
type
</string>
</key>
<value>
<string>
string
</string>
</value>
</item>
</dictionary>
<dictionary>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
acquisition_sync_value
</string>
</value>
</item>
<item>
<key>
<string>
type
</string>
</key>
<value>
<string>
int
</string>
</value>
</item>
</dictionary>
<dictionary>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
mode
</string>
</value>
</item>
<item>
<key>
<string>
type
</string>
</key>
<value>
<string>
string
</string>
</value>
</item>
</dictionary>
</tuple>
</value>
</item>
<item>
<key>
<string>
acquisition_accessor_id
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
acquisition_base_category
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
acquisition_copy_value
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
acquisition_depends
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
acquisition_mask_value
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
acquisition_object_id
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
acquisition_portal_type
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
acquisition_sync_value
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
alt_accessor_id
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
elementary_type/content
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
content_acquired_property_id
</string>
</key>
<value>
<tuple>
<string>
title
</string>
<string>
resource
</string>
<string>
resource_title
</string>
<string>
resource_value
</string>
<string>
resource_reference
</string>
<string>
quantity
</string>
<string>
quantity_unit
</string>
<string>
price_currency
</string>
<string>
price
</string>
<string>
total_price
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
content_portal_type
</string>
</key>
<value>
<string>
python: (\'Outcome Path\',)
</string>
</value>
</item>
<item>
<key>
<string>
content_translation_acquired_property_id
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
The default outcome path
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
outcome_path_property
</string>
</value>
</item>
<item>
<key>
<string>
mode
</string>
</key>
<value>
<string>
w
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Acquired Property
</string>
</value>
</item>
<item>
<key>
<string>
storage_id
</string>
</key>
<value>
<string>
default_outcome_path
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_crm/bt/revision
View file @
1ce20883
649
650
\ No newline at end of file
\ No newline at end of file
bt5/erp5_crm/bt/template_portal_type_allowed_content_type_list
View file @
1ce20883
Campaign Module | Campaign
Campaign Module | Campaign
Campaign | Event Path
Campaign | Event Path
Campaign | Outcome Path
Event Module | Acknowledgement
Event Module | Acknowledgement
Event Module | Fax Message
Event Module | Fax Message
Event Module | Letter
Event Module | Letter
...
...
bt5/erp5_crm/bt/template_portal_type_hidden_content_type_list
View file @
1ce20883
Campaign | Event Path
Campaign | Event Path
Campaign | Outcome Path
Event Module | Acknowledgement
Event Module | Acknowledgement
\ No newline at end of file
bt5/erp5_crm/bt/template_portal_type_id_list
View file @
1ce20883
...
@@ -9,6 +9,7 @@ Mail Message
...
@@ -9,6 +9,7 @@ Mail Message
Meeting
Meeting
Meeting Module
Meeting Module
Note
Note
Outcome Path
Phone Call
Phone Call
Sale Opportunity
Sale Opportunity
Sale Opportunity Module
Sale Opportunity Module
...
...
bt5/erp5_crm/bt/template_portal_type_property_sheet_list
View file @
1ce20883
Campaign | DefaultEventPath
Campaign | DefaultEventPath
Campaign | DefaultOutcomePath
Event Path | EventPath
Event Path | EventPath
Support Request | Codification
Support Request | Codification
\ No newline at end of file
bt5/erp5_crm/bt/template_property_sheet_id_list
View file @
1ce20883
DefaultEventPath
DefaultEventPath
EventPath
EventPath
DefaultOutcomePath
EventConstraint
EventConstraint
MailMessageConstraint
MailMessageConstraint
\ No newline at end of file
product/ERP5/tests/testCRM.py
View file @
1ce20883
...
@@ -524,6 +524,29 @@ class TestCRM(BaseTestCRM):
...
@@ -524,6 +524,29 @@ class TestCRM(BaseTestCRM):
resource_value_list
=
map
(
lambda
x
:
x
.
getResourceValue
(),
event_list
)
resource_value_list
=
map
(
lambda
x
:
x
.
getResourceValue
(),
event_list
)
self
.
assertEquals
([
service
],
resource_value_list
)
self
.
assertEquals
([
service
],
resource_value_list
)
def
test_OutcomePath
(
self
):
service
=
self
.
portal
.
service_module
.
newContent
(
portal_type
=
'Service'
)
currency
=
self
.
portal
.
currency_module
.
newContent
(
portal_type
=
'Currency'
)
campaign
=
self
.
portal
.
campaign_module
.
newContent
(
portal_type
=
"Campaign"
)
campaign
.
setDefaultOutcomePathQuantity
(
3
)
campaign
.
setDefaultOutcomePathQuantityUnit
(
'unit/piece'
)
campaign
.
setDefaultOutcomePathResourceValue
(
service
)
campaign
.
setDefaultOutcomePathPrice
(
4
)
campaign
.
setDefaultOutcomePathPriceCurrency
(
currency
.
getRelativeUrl
())
self
.
assertEquals
(
3
*
4
,
campaign
.
getDefaultOutcomePathTotalPrice
())
self
.
assertEquals
(
3
,
campaign
.
getDefaultOutcomePathQuantity
())
self
.
assertEquals
(
'unit/piece'
,
campaign
.
getDefaultOutcomePathQuantityUnit
())
self
.
assertEquals
(
service
.
getRelativeUrl
(),
campaign
.
getDefaultOutcomePathResource
())
self
.
assertEquals
(
4
,
campaign
.
getDefaultOutcomePathPrice
())
self
.
assertEquals
(
currency
.
getRelativeUrl
(),
campaign
.
getDefaultOutcomePathPriceCurrency
())
outcome_path
=
campaign
.
_getOb
(
'default_outcome_path'
)
self
.
assertEquals
(
'Outcome Path'
,
outcome_path
.
getPortalType
())
class
TestCRMMailIngestion
(
BaseTestCRM
):
class
TestCRMMailIngestion
(
BaseTestCRM
):
"""Test Mail Ingestion for standalone CRM.
"""Test Mail Ingestion for standalone CRM.
...
...
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