From 3bfe7553ed2988a8ae30a22ff5e45a18b8e5d194 Mon Sep 17 00:00:00 2001 From: Romain Courteaud <romain@nexedi.com> Date: Tue, 11 Sep 2007 08:07:37 +0000 Subject: [PATCH] 2007-09-11 Romain * Add Visit portal type git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16249 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../portal_types/Visit/assessment.xml | 110 ++++++++++++++++ .../portal_types/Visit/preview.xml | 89 +++++++++++++ .../portal_types/Visit/view.xml | 89 +++++++++++++ .../allowed_content_types.xml | 1 + .../portal_types/Visit.xml | 121 ++++++++++++++++++ .../workflow_chain_type.xml | 4 + bt5/erp5_crm/bt/change_log | 3 + bt5/erp5_crm/bt/revision | 2 +- bt5/erp5_crm/bt/template_action_path_list | 5 +- ...late_portal_type_allowed_content_type_list | 1 + bt5/erp5_crm/bt/template_portal_type_id_list | 3 +- .../template_portal_type_workflow_chain_list | 4 +- 12 files changed, 428 insertions(+), 4 deletions(-) create mode 100644 bt5/erp5_crm/ActionTemplateItem/portal_types/Visit/assessment.xml create mode 100644 bt5/erp5_crm/ActionTemplateItem/portal_types/Visit/preview.xml create mode 100644 bt5/erp5_crm/ActionTemplateItem/portal_types/Visit/view.xml create mode 100644 bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Visit.xml diff --git a/bt5/erp5_crm/ActionTemplateItem/portal_types/Visit/assessment.xml b/bt5/erp5_crm/ActionTemplateItem/portal_types/Visit/assessment.xml new file mode 100644 index 0000000000..435f0329bb --- /dev/null +++ b/bt5/erp5_crm/ActionTemplateItem/portal_types/Visit/assessment.xml @@ -0,0 +1,110 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.CMFCore.ActionInformation</string> + <string>ActionInformation</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>action</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>category</string> </key> + <value> <string>object_view</string> </value> + </item> + <item> + <key> <string>condition</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>icon</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>assessment</string> </value> + </item> + <item> + <key> <string>permissions</string> </key> + <value> + <tuple> + <string>View</string> + </tuple> + </value> + </item> + <item> + <key> <string>priority</string> </key> + <value> <float>20.0</float> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Assessment</string> </value> + </item> + <item> + <key> <string>visible</string> </key> + <value> <int>1</int> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <tuple> + <string>Products.CMFCore.Expression</string> + <string>Expression</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>python:"%s/%s" % (object_url, object.getFollowUpValue().getAssessmentFormId())</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <tuple> + <tuple> + <string>Products.CMFCore.Expression</string> + <string>Expression</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>python: object is not None and object.Event_hasFollowUpAssessmentForm()</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_crm/ActionTemplateItem/portal_types/Visit/preview.xml b/bt5/erp5_crm/ActionTemplateItem/portal_types/Visit/preview.xml new file mode 100644 index 0000000000..17e7da5967 --- /dev/null +++ b/bt5/erp5_crm/ActionTemplateItem/portal_types/Visit/preview.xml @@ -0,0 +1,89 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.CMFCore.ActionInformation</string> + <string>ActionInformation</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>action</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>category</string> </key> + <value> <string>object_view</string> </value> + </item> + <item> + <key> <string>condition</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>icon</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>preview</string> </value> + </item> + <item> + <key> <string>permissions</string> </key> + <value> + <tuple> + <string>View</string> + </tuple> + </value> + </item> + <item> + <key> <string>priority</string> </key> + <value> <float>10.0</float> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Preview</string> </value> + </item> + <item> + <key> <string>visible</string> </key> + <value> <int>1</int> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <tuple> + <string>Products.CMFCore.Expression</string> + <string>Expression</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/Event_viewPreview</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_crm/ActionTemplateItem/portal_types/Visit/view.xml b/bt5/erp5_crm/ActionTemplateItem/portal_types/Visit/view.xml new file mode 100644 index 0000000000..d0b6a27e1b --- /dev/null +++ b/bt5/erp5_crm/ActionTemplateItem/portal_types/Visit/view.xml @@ -0,0 +1,89 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.CMFCore.ActionInformation</string> + <string>ActionInformation</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>action</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>category</string> </key> + <value> <string>object_view</string> </value> + </item> + <item> + <key> <string>condition</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>icon</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>view</string> </value> + </item> + <item> + <key> <string>permissions</string> </key> + <value> + <tuple> + <string>View</string> + </tuple> + </value> + </item> + <item> + <key> <string>priority</string> </key> + <value> <float>1.0</float> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>View</string> </value> + </item> + <item> + <key> <string>visible</string> </key> + <value> <int>1</int> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <tuple> + <string>Products.CMFCore.Expression</string> + <string>Expression</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/Event_view</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_crm/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml b/bt5/erp5_crm/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml index 22a761d28b..76921cb454 100644 --- a/bt5/erp5_crm/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml +++ b/bt5/erp5_crm/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml @@ -3,6 +3,7 @@ <item>Campaign</item> </portal_type> <portal_type id="Event Module"> + <item>Visit</item> <item>Letter</item> <item>Note</item> <item>Phone Call</item> diff --git a/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Visit.xml b/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Visit.xml new file mode 100644 index 0000000000..fed17afebd --- /dev/null +++ b/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Visit.xml @@ -0,0 +1,121 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.ERP5Type.ERP5Type</string> + <string>ERP5TypeInformation</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_actions</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>_aliases</string> </key> + <value> + <dictionary/> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_roles</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>acquire_local_roles</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>allowed_content_types</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>base_category_list</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>content_icon</string> </key> + <value> <string>event_icon.gif</string> </value> + </item> + <item> + <key> <string>content_meta_type</string> </key> + <value> <string>ERP5 Event</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>A Visit is an event which can be used to register visit with people.</string> </value> + </item> + <item> + <key> <string>factory</string> </key> + <value> <string>addEvent</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>delivery</string> + <string>event</string> + </tuple> + </value> + </item> + <item> + <key> <string>hidden_content_type_list</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>Visit</string> </value> + </item> + <item> + <key> <string>init_script</string> </key> + <value> <string>Event_init</string> </value> + </item> + <item> + <key> <string>permission</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>property_sheet_list</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_crm/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml b/bt5/erp5_crm/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml index 96564d42d3..f34db6d1b4 100644 --- a/bt5/erp5_crm/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml +++ b/bt5/erp5_crm/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml @@ -35,4 +35,8 @@ <type>Support Request</type> <workflow>ticket_workflow, edit_workflow</workflow> </chain> + <chain> + <type>Visit</type> + <workflow>edit_workflow, event_workflow</workflow> + </chain> </workflow_chain> \ No newline at end of file diff --git a/bt5/erp5_crm/bt/change_log b/bt5/erp5_crm/bt/change_log index ba44eaac67..11a2e5fe70 100644 --- a/bt5/erp5_crm/bt/change_log +++ b/bt5/erp5_crm/bt/change_log @@ -1,3 +1,6 @@ +2007-09-11 Romain +* Add Visit portal type + 2007-09-11 Thierry * Improve Ticket workflow (add worklists) * Add missing portal type actions diff --git a/bt5/erp5_crm/bt/revision b/bt5/erp5_crm/bt/revision index 0fa6a7b088..a46c9d2265 100644 --- a/bt5/erp5_crm/bt/revision +++ b/bt5/erp5_crm/bt/revision @@ -1 +1 @@ -90 \ No newline at end of file +91 \ No newline at end of file diff --git a/bt5/erp5_crm/bt/template_action_path_list b/bt5/erp5_crm/bt/template_action_path_list index eec9e62094..d63498c5bc 100644 --- a/bt5/erp5_crm/bt/template_action_path_list +++ b/bt5/erp5_crm/bt/template_action_path_list @@ -24,4 +24,7 @@ Preference | crm_preference Sale Opportunity Module | view Sale Opportunity | view Support Request Module | view -Support Request | view \ No newline at end of file +Support Request | view +Visit | assessment +Visit | preview +Visit | view \ No newline at end of file diff --git a/bt5/erp5_crm/bt/template_portal_type_allowed_content_type_list b/bt5/erp5_crm/bt/template_portal_type_allowed_content_type_list index 16661130b5..04b2c19646 100644 --- a/bt5/erp5_crm/bt/template_portal_type_allowed_content_type_list +++ b/bt5/erp5_crm/bt/template_portal_type_allowed_content_type_list @@ -4,6 +4,7 @@ Event Module | Letter Event Module | Mail Message Event Module | Note Event Module | Phone Call +Event Module | Visit Meeting Module | Meeting Sale Opportunity Module | Sale Opportunity Support Request Module | Support Request \ No newline at end of file diff --git a/bt5/erp5_crm/bt/template_portal_type_id_list b/bt5/erp5_crm/bt/template_portal_type_id_list index c68011ab64..d3c07e146b 100644 --- a/bt5/erp5_crm/bt/template_portal_type_id_list +++ b/bt5/erp5_crm/bt/template_portal_type_id_list @@ -11,4 +11,5 @@ Phone Call Sale Opportunity Sale Opportunity Module Support Request -Support Request Module \ No newline at end of file +Support Request Module +Visit \ No newline at end of file diff --git a/bt5/erp5_crm/bt/template_portal_type_workflow_chain_list b/bt5/erp5_crm/bt/template_portal_type_workflow_chain_list index 77f09eb365..c226c8525a 100644 --- a/bt5/erp5_crm/bt/template_portal_type_workflow_chain_list +++ b/bt5/erp5_crm/bt/template_portal_type_workflow_chain_list @@ -15,4 +15,6 @@ Phone Call | event_workflow Sale Opportunity | edit_workflow Sale Opportunity | sale_opportunity_workflow Support Request | edit_workflow -Support Request | ticket_workflow \ No newline at end of file +Support Request | ticket_workflow +Visit | edit_workflow +Visit | event_workflow \ No newline at end of file -- 2.30.9