diff --git a/bt5/erp5_crm/ActionTemplateItem/portal_types/Fax%20Message/create_related_event.xml b/bt5/erp5_crm/ActionTemplateItem/portal_types/Fax%20Message/create_related_event.xml deleted file mode 100644 index 950d725d4de379877942f610d01813315ade3197..0000000000000000000000000000000000000000 --- a/bt5/erp5_crm/ActionTemplateItem/portal_types/Fax%20Message/create_related_event.xml +++ /dev/null @@ -1,101 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <tuple> - <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/> - <tuple/> - </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_action</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>create_related_event</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>40.0</float> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>Create Related Event</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> - <global name="Expression" module="Products.CMFCore.Expression"/> - <tuple/> - </tuple> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>text</string> </key> - <value> <string>string:${object_url}/Event_viewCreateRelatedEventDialog</string> </value> - </item> - </dictionary> - </pickle> - </record> - <record id="3" aka="AAAAAAAAAAM="> - <pickle> - <tuple> - <global name="Expression" module="Products.CMFCore.Expression"/> - <tuple/> - </tuple> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>text</string> </key> - <value> <string>python:object is not None and object.getSimulationState() not in (\'draft\', )</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_crm/ActionTemplateItem/portal_types/Letter/create_related_event.xml b/bt5/erp5_crm/ActionTemplateItem/portal_types/Letter/create_related_event.xml deleted file mode 100644 index 950d725d4de379877942f610d01813315ade3197..0000000000000000000000000000000000000000 --- a/bt5/erp5_crm/ActionTemplateItem/portal_types/Letter/create_related_event.xml +++ /dev/null @@ -1,101 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <tuple> - <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/> - <tuple/> - </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_action</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>create_related_event</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>40.0</float> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>Create Related Event</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> - <global name="Expression" module="Products.CMFCore.Expression"/> - <tuple/> - </tuple> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>text</string> </key> - <value> <string>string:${object_url}/Event_viewCreateRelatedEventDialog</string> </value> - </item> - </dictionary> - </pickle> - </record> - <record id="3" aka="AAAAAAAAAAM="> - <pickle> - <tuple> - <global name="Expression" module="Products.CMFCore.Expression"/> - <tuple/> - </tuple> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>text</string> </key> - <value> <string>python:object is not None and object.getSimulationState() not in (\'draft\', )</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_crm/ActionTemplateItem/portal_types/Mail%20Message/create_related_event.xml b/bt5/erp5_crm/ActionTemplateItem/portal_types/Mail%20Message/create_related_event.xml deleted file mode 100644 index 950d725d4de379877942f610d01813315ade3197..0000000000000000000000000000000000000000 --- a/bt5/erp5_crm/ActionTemplateItem/portal_types/Mail%20Message/create_related_event.xml +++ /dev/null @@ -1,101 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <tuple> - <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/> - <tuple/> - </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_action</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>create_related_event</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>40.0</float> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>Create Related Event</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> - <global name="Expression" module="Products.CMFCore.Expression"/> - <tuple/> - </tuple> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>text</string> </key> - <value> <string>string:${object_url}/Event_viewCreateRelatedEventDialog</string> </value> - </item> - </dictionary> - </pickle> - </record> - <record id="3" aka="AAAAAAAAAAM="> - <pickle> - <tuple> - <global name="Expression" module="Products.CMFCore.Expression"/> - <tuple/> - </tuple> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>text</string> </key> - <value> <string>python:object is not None and object.getSimulationState() not in (\'draft\', )</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_crm/ActionTemplateItem/portal_types/Note/create_related_event.xml b/bt5/erp5_crm/ActionTemplateItem/portal_types/Note/create_related_event.xml deleted file mode 100644 index 950d725d4de379877942f610d01813315ade3197..0000000000000000000000000000000000000000 --- a/bt5/erp5_crm/ActionTemplateItem/portal_types/Note/create_related_event.xml +++ /dev/null @@ -1,101 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <tuple> - <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/> - <tuple/> - </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_action</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>create_related_event</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>40.0</float> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>Create Related Event</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> - <global name="Expression" module="Products.CMFCore.Expression"/> - <tuple/> - </tuple> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>text</string> </key> - <value> <string>string:${object_url}/Event_viewCreateRelatedEventDialog</string> </value> - </item> - </dictionary> - </pickle> - </record> - <record id="3" aka="AAAAAAAAAAM="> - <pickle> - <tuple> - <global name="Expression" module="Products.CMFCore.Expression"/> - <tuple/> - </tuple> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>text</string> </key> - <value> <string>python:object is not None and object.getSimulationState() not in (\'draft\', )</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_crm/ActionTemplateItem/portal_types/Phone%20Call/create_related_event.xml b/bt5/erp5_crm/ActionTemplateItem/portal_types/Phone%20Call/create_related_event.xml deleted file mode 100644 index 950d725d4de379877942f610d01813315ade3197..0000000000000000000000000000000000000000 --- a/bt5/erp5_crm/ActionTemplateItem/portal_types/Phone%20Call/create_related_event.xml +++ /dev/null @@ -1,101 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <tuple> - <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/> - <tuple/> - </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_action</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>create_related_event</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>40.0</float> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>Create Related Event</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> - <global name="Expression" module="Products.CMFCore.Expression"/> - <tuple/> - </tuple> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>text</string> </key> - <value> <string>string:${object_url}/Event_viewCreateRelatedEventDialog</string> </value> - </item> - </dictionary> - </pickle> - </record> - <record id="3" aka="AAAAAAAAAAM="> - <pickle> - <tuple> - <global name="Expression" module="Products.CMFCore.Expression"/> - <tuple/> - </tuple> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>text</string> </key> - <value> <string>python:object is not None and object.getSimulationState() not in (\'draft\', )</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_crm/ActionTemplateItem/portal_types/Visit/create_related_event.xml b/bt5/erp5_crm/ActionTemplateItem/portal_types/Visit/create_related_event.xml deleted file mode 100644 index 950d725d4de379877942f610d01813315ade3197..0000000000000000000000000000000000000000 --- a/bt5/erp5_crm/ActionTemplateItem/portal_types/Visit/create_related_event.xml +++ /dev/null @@ -1,101 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <tuple> - <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/> - <tuple/> - </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_action</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>create_related_event</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>40.0</float> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>Create Related Event</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> - <global name="Expression" module="Products.CMFCore.Expression"/> - <tuple/> - </tuple> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>text</string> </key> - <value> <string>string:${object_url}/Event_viewCreateRelatedEventDialog</string> </value> - </item> - </dictionary> - </pickle> - </record> - <record id="3" aka="AAAAAAAAAAM="> - <pickle> - <tuple> - <global name="Expression" module="Products.CMFCore.Expression"/> - <tuple/> - </tuple> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>text</string> </key> - <value> <string>python:object is not None and object.getSimulationState() not in (\'draft\', )</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_crm/ActionTemplateItem/portal_types/Web%20Message/create_related_event.xml b/bt5/erp5_crm/ActionTemplateItem/portal_types/Web%20Message/create_related_event.xml deleted file mode 100644 index 950d725d4de379877942f610d01813315ade3197..0000000000000000000000000000000000000000 --- a/bt5/erp5_crm/ActionTemplateItem/portal_types/Web%20Message/create_related_event.xml +++ /dev/null @@ -1,101 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <tuple> - <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/> - <tuple/> - </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_action</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>create_related_event</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>40.0</float> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>Create Related Event</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> - <global name="Expression" module="Products.CMFCore.Expression"/> - <tuple/> - </tuple> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>text</string> </key> - <value> <string>string:${object_url}/Event_viewCreateRelatedEventDialog</string> </value> - </item> - </dictionary> - </pickle> - </record> - <record id="3" aka="AAAAAAAAAAM="> - <pickle> - <tuple> - <global name="Expression" module="Products.CMFCore.Expression"/> - <tuple/> - </tuple> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>text</string> </key> - <value> <string>python:object is not None and object.getSimulationState() not in (\'draft\', )</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_createRelatedEvent.xml b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_createRelatedEvent.xml index 7f212f24cf0c1d549acac5061836bc4d78426a31..ff3a7cfcfef61479689391250b96082b8811e59e 100644 --- a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_createRelatedEvent.xml +++ b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_createRelatedEvent.xml @@ -68,13 +68,13 @@ <value> <string># this script allows to create a new related event by causality for\n # the current event\n from DateTime import DateTime\n +from Products.CMFCore.WorkflowCore import WorkflowException\n N_ = context.Base_translateString\n date = DateTime()\n portal = context.getPortalObject()\n \n if portal_type not in portal.event_module.getVisibleAllowedContentTypeList():\n - return context.Base_redirect(form_id, keep_items=dict(\n - portal_status_message=N_("You Don\'t Have Permission to Add New Event")))\n + raise WorkflowException, "You Don\'t Have Permission to Add New Event"\n \n # Create the draft Event\n related_event = portal.event_module.newContent(\n @@ -85,10 +85,7 @@ related_event = portal.event_module.newContent(\n source=context.getDefaultDestination(),\n destination=context.getDefaultSource(),\n causality=context.getRelativeUrl(),\n -)\n -\n -return related_event.Base_redirect(\'view\', keep_items=dict(\n - portal_status_message=N_(\'Related Event Created\')))\n + )\n </string> </value> </item> <item> @@ -111,7 +108,7 @@ return related_event.Base_redirect(\'view\', keep_items=dict(\n </item> <item> <key> <string>_params</string> </key> - <value> <string>portal_type, title, description, form_id=\'view\', **kw</string> </value> + <value> <string>portal_type, title, description</string> </value> </item> <item> <key> <string>errors</string> </key> @@ -131,7 +128,7 @@ return related_event.Base_redirect(\'view\', keep_items=dict(\n <dictionary> <item> <key> <string>co_argcount</string> </key> - <value> <int>4</int> </value> + <value> <int>3</int> </value> </item> <item> <key> <string>co_varnames</string> </key> @@ -140,15 +137,14 @@ return related_event.Base_redirect(\'view\', keep_items=dict(\n <string>portal_type</string> <string>title</string> <string>description</string> - <string>form_id</string> - <string>kw</string> <string>DateTime</string> + <string>Products.CMFCore.WorkflowCore</string> + <string>WorkflowException</string> <string>_getattr_</string> <string>context</string> <string>N_</string> <string>date</string> <string>portal</string> - <string>dict</string> <string>related_event</string> </tuple> </value> @@ -161,9 +157,7 @@ return related_event.Base_redirect(\'view\', keep_items=dict(\n <item> <key> <string>func_defaults</string> </key> <value> - <tuple> - <string>view</string> - </tuple> + <none/> </value> </item> <item> diff --git a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_createRespondEvent.xml b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_createRespondEvent.xml index d2660011c24a254f94b0a2f4670f4b913632e4ab..62209a70aed18c67ea8dc475566797932b1e6d8e 100644 --- a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_createRespondEvent.xml +++ b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_createRespondEvent.xml @@ -77,7 +77,7 @@ respond_event = event_module.newContent(\n start_date=DateTime(),\n source=context.getDefaultDestination(),\n destination=context.getDefaultSource(),\n - causality=context.getRelativeUrl(), \n + causality=context.getRelativeUrl(),\n )\n \n if respond_event_quotation:\n diff --git a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_getTextContentCorrespondToFormat.xml b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_getTextContentCorrespondToFormat.xml new file mode 100644 index 0000000000000000000000000000000000000000..0c01097b549d337cc1bfb246ad62ef58b7d142c1 --- /dev/null +++ b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_getTextContentCorrespondToFormat.xml @@ -0,0 +1,158 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Python_magic</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>Script_magic</string> </key> + <value> <int>3</int> </value> + </item> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary> + <item> + <key> <string>name_container</string> </key> + <value> <string>container</string> </value> + </item> + <item> + <key> <string>name_context</string> </key> + <value> <string>context</string> </value> + </item> + <item> + <key> <string>name_m_self</string> </key> + <value> <string>script</string> </value> + </item> + <item> + <key> <string>name_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_body</string> </key> + <value> <string>from Products.PythonScripts.standard import newline_to_br\n +\n +text_format = context.getTextFormat()\n +\n +if text_format == \'text/html\' and context.hasFile():\n + return context.asStrippedHTML()\n +else:\n + value = context.getTextContent()\n + if editable:\n + return value\n + else:\n + return newline_to_br(value)\n +</string> </value> + </item> + <item> + <key> <string>_code</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_filepath</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string>editable=True</string> </value> + </item> + <item> + <key> <string>errors</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>func_code</string> </key> + <value> + <object> + <klass> + <global name="FuncCode" module="Shared.DC.Scripts.Signature"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>co_argcount</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>co_varnames</string> </key> + <value> + <tuple> + <string>editable</string> + <string>Products.PythonScripts.standard</string> + <string>newline_to_br</string> + <string>_getattr_</string> +<string>context</string> + <string>text_format</string> + <string>value</string> + </tuple> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>func_defaults</string> </key> + <value> + <tuple> + <int>1</int> + </tuple> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>Event_getTextContentCorrespondToFormat</string> </value> + </item> + <item> + <key> <string>warnings</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_view/my_text_content.xml b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_view/my_text_content.xml index edcf4322c1c7d6cb58d00e06b61dba53a9933380..d6e116c84456a606d07d0ab2f41ee3b89f533127 100644 --- a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_view/my_text_content.xml +++ b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_view/my_text_content.xml @@ -3,11 +3,8 @@ <record id="1" aka="AAAAAAAAAAE="> <pickle> <tuple> - <tuple> - <string>Products.ERP5Form.ProxyField</string> - <string>ProxyField</string> - </tuple> - <none/> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + <tuple/> </tuple> </pickle> <pickle> diff --git a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewAcknowledgeActionDialog.xml b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewAcknowledgeActionDialog.xml index 7a6829a91ae24ed4cd8e63ec8b739dc28ffaefa1..a9654e06e5f71a398806b55c74381655483194ad 100644 --- a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewAcknowledgeActionDialog.xml +++ b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewAcknowledgeActionDialog.xml @@ -46,6 +46,16 @@ <key> <string>action</string> </key> <value> <string>Workflow_statusModify</string> </value> </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>edit_order</string> </key> + <value> + <list/> + </value> + </item> <item> <key> <string>encoding</string> </key> <value> <string>UTF-8</string> </value> diff --git a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewCreateRelatedEventDialog.xml b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewCreateRelatedEventActionDialog.xml similarity index 79% rename from bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewCreateRelatedEventDialog.xml rename to bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewCreateRelatedEventActionDialog.xml index 1c9ebb3e932283d50262a5f386cdad1dbcd6b3cd..6b6b0b2fb93f0b147f8008fda220565b84eabd4b 100644 --- a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewCreateRelatedEventDialog.xml +++ b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewCreateRelatedEventActionDialog.xml @@ -42,20 +42,20 @@ <tuple/> </value> </item> - <item> - <key> <string>_owner</string> </key> - <value> - <none/> - </value> - </item> <item> <key> <string>action</string> </key> - <value> <string>Event_createRelatedEvent</string> </value> + <value> <string>Workflow_statusModify</string> </value> </item> <item> <key> <string>description</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>edit_order</string> </key> + <value> + <list/> + </value> + </item> <item> <key> <string>encoding</string> </key> <value> <string>UTF-8</string> </value> @@ -69,7 +69,6 @@ <value> <list> <string>left</string> - <string>right</string> </list> </value> </item> @@ -81,24 +80,20 @@ <key> <string>left</string> </key> <value> <list> - <string>your_portal_type</string> - <string>your_title</string> - <string>your_description</string> + <string>your_related_event_portal_type</string> + <string>your_related_event_title</string> + <string>your_related_event_description</string> + <string>your_comment</string> + <string>your_workflow_action</string> </list> </value> </item> - <item> - <key> <string>right</string> </key> - <value> - <list/> - </value> - </item> </dictionary> </value> </item> <item> <key> <string>id</string> </key> - <value> <string>Event_viewCreateRelatedEventDialog</string> </value> + <value> <string>Event_viewCreateRelatedEventActionDialog</string> </value> </item> <item> <key> <string>method</string> </key> @@ -106,11 +101,11 @@ </item> <item> <key> <string>name</string> </key> - <value> <string>Event_viewCreateRelatedEventDialog</string> </value> + <value> <string>Base_viewWorkflowActionDialog</string> </value> </item> <item> <key> <string>pt</string> </key> - <value> <string>form_dialog</string> </value> + <value> <string>form_view_dialog</string> </value> </item> <item> <key> <string>row_length</string> </key> @@ -122,7 +117,13 @@ </item> <item> <key> <string>title</string> </key> - <value> <string>Create Related Event</string> </value> + <value> <string>Validate Workflow Action</string> </value> + </item> + <item> + <key> <string>uid</string> </key> + <value> + <none/> + </value> </item> <item> <key> <string>unicode_mode</string> </key> diff --git a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewCreateRelatedEventActionDialog/your_comment.xml b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewCreateRelatedEventActionDialog/your_comment.xml new file mode 100644 index 0000000000000000000000000000000000000000..8794ad3abc78bad911393b8e355bf817ac641bce --- /dev/null +++ b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewCreateRelatedEventActionDialog/your_comment.xml @@ -0,0 +1,307 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.Formulator.StandardFields</string> + <string>TextAreaField</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>your_comment</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + <item> + <key> <string>line_too_long</string> </key> + <value> <string>A line was too long.</string> </value> + </item> + <item> + <key> <string>required_not_found</string> </key> + <value> <string>Input is required but no input given.</string> </value> + </item> + <item> + <key> <string>too_long</string> </key> + <value> <string>You entered too many characters.</string> </value> + </item> + <item> + <key> <string>too_many_lines</string> </key> + <value> <string>You entered too many lines.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>height</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_linelength</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_lines</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>width</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>height</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_linelength</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_lines</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>width</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>height</string> </key> + <value> <int>10</int> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_linelength</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_lines</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Comment</string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>width</string> </key> + <value> <int>80</int> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <tuple> + <string>Products.Formulator.TALESField</string> + <string>TALESMethod</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>python: \'\'</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewCreateRelatedEventDialog/your_description.xml b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewCreateRelatedEventActionDialog/your_related_event_description.xml similarity index 97% rename from bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewCreateRelatedEventDialog/your_description.xml rename to bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewCreateRelatedEventActionDialog/your_related_event_description.xml index 9613ba63da3f3c1bba1da4e637e3373fc1517f94..26204115e02a512d43ab33b3c7c87013af329587 100644 --- a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewCreateRelatedEventDialog/your_description.xml +++ b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewCreateRelatedEventActionDialog/your_related_event_description.xml @@ -23,7 +23,7 @@ </item> <item> <key> <string>id</string> </key> - <value> <string>your_description</string> </value> + <value> <string>your_related_event_description</string> </value> </item> <item> <key> <string>message_values</string> </key> diff --git a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewCreateRelatedEventDialog/your_portal_type.xml b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewCreateRelatedEventActionDialog/your_related_event_portal_type.xml similarity index 97% rename from bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewCreateRelatedEventDialog/your_portal_type.xml rename to bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewCreateRelatedEventActionDialog/your_related_event_portal_type.xml index 33d638b2c46b7cce07514e967c33f099b3cb8d68..340094e5400bfce5cd751a2bf29e583e306b142a 100644 --- a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewCreateRelatedEventDialog/your_portal_type.xml +++ b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewCreateRelatedEventActionDialog/your_related_event_portal_type.xml @@ -23,7 +23,7 @@ </item> <item> <key> <string>id</string> </key> - <value> <string>your_portal_type</string> </value> + <value> <string>your_related_event_portal_type</string> </value> </item> <item> <key> <string>message_values</string> </key> diff --git a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewCreateRelatedEventDialog/your_title.xml b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewCreateRelatedEventActionDialog/your_related_event_title.xml similarity index 98% rename from bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewCreateRelatedEventDialog/your_title.xml rename to bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewCreateRelatedEventActionDialog/your_related_event_title.xml index e0c99964c63a5558fe16a72a717a6118bd5d6278..f285dfbdec65f2ab9a6882488ac8424005f731d9 100644 --- a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewCreateRelatedEventDialog/your_title.xml +++ b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewCreateRelatedEventActionDialog/your_related_event_title.xml @@ -25,7 +25,7 @@ </item> <item> <key> <string>id</string> </key> - <value> <string>your_title</string> </value> + <value> <string>your_related_event_title</string> </value> </item> <item> <key> <string>message_values</string> </key> diff --git a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewCreateRelatedEventActionDialog/your_workflow_action.xml b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewCreateRelatedEventActionDialog/your_workflow_action.xml new file mode 100644 index 0000000000000000000000000000000000000000..d7196dd16c967c633fc85be5d0583c5133da08ba --- /dev/null +++ b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewCreateRelatedEventActionDialog/your_workflow_action.xml @@ -0,0 +1,287 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.Formulator.StandardFields</string> + <string>StringField</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>your_workflow_action</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + <item> + <key> <string>required_not_found</string> </key> + <value> <string>Input is required but no input given.</string> </value> + </item> + <item> + <key> <string>too_long</string> </key> + <value> <string>Too much input was given.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <int>20</int> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <int>0</int> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <tuple> + <string>Products.Formulator.TALESField</string> + <string>TALESMethod</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>request/workflow_action | request/field_my_workflow_action | nothing</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewFieldLibrary.xml b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewFieldLibrary.xml index e021af3011232dabd7b6cf2a15d332b24beb82a4..170ab95435073f595703c2fee3cff71ef2c569c0 100644 --- a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewFieldLibrary.xml +++ b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewFieldLibrary.xml @@ -63,6 +63,7 @@ <string>center</string> <string>bottom</string> <string>hidden</string> + <string>not_assigned</string> </list> </value> </item> @@ -110,6 +111,14 @@ </list> </value> </item> + <item> + <key> <string>not_assigned</string> </key> + <value> + <list> + <string>listbox</string> + </list> + </value> + </item> <item> <key> <string>right</string> </key> <value> diff --git a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewFieldLibrary/my_text_content.xml b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewFieldLibrary/my_text_content.xml index eced6d93fdc9166e00205b3e4c69d6df39b42b4c..5fc5b01da8889d84d99627f07d53b0edf43763dc 100644 --- a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewFieldLibrary/my_text_content.xml +++ b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewFieldLibrary/my_text_content.xml @@ -3,11 +3,8 @@ <record id="1" aka="AAAAAAAAAAE="> <pickle> <tuple> - <tuple> - <string>Products.ERP5Form.EditorField</string> - <string>EditorField</string> - </tuple> - <none/> + <global name="EditorField" module="Products.ERP5Form.EditorField"/> + <tuple/> </tuple> </pickle> <pickle> @@ -302,11 +299,8 @@ <record id="2" aka="AAAAAAAAAAI="> <pickle> <tuple> - <tuple> - <string>Products.Formulator.TALESField</string> - <string>TALESMethod</string> - </tuple> - <none/> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + <tuple/> </tuple> </pickle> <pickle> @@ -321,18 +315,15 @@ <record id="3" aka="AAAAAAAAAAM="> <pickle> <tuple> - <tuple> - <string>Products.Formulator.TALESField</string> - <string>TALESMethod</string> - </tuple> - <none/> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + <tuple/> </tuple> </pickle> <pickle> <dictionary> <item> <key> <string>_text</string> </key> - <value> <string>python:(here.hasFile() and here.asStrippedHTML()) or here.getTextContent()</string> </value> + <value> <string>python:here.Event_getTextContentCorrespondToFormat(editable=not here.hasFile())</string> </value> </item> </dictionary> </pickle> @@ -340,11 +331,8 @@ <record id="4" aka="AAAAAAAAAAQ="> <pickle> <tuple> - <tuple> - <string>Products.Formulator.TALESField</string> - <string>TALESMethod</string> - </tuple> - <none/> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + <tuple/> </tuple> </pickle> <pickle> @@ -359,11 +347,8 @@ <record id="5" aka="AAAAAAAAAAU="> <pickle> <tuple> - <tuple> - <string>Products.Formulator.TALESField</string> - <string>TALESMethod</string> - </tuple> - <none/> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + <tuple/> </tuple> </pickle> <pickle> diff --git a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewPreview/text_content.xml b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewPreview/text_content.xml index 310fd332e39f9894b6350329ae5ee507d59f41d9..ac446a587a140d343379333aeb46b976ed04fb28 100644 --- a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewPreview/text_content.xml +++ b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewPreview/text_content.xml @@ -3,11 +3,8 @@ <record id="1" aka="AAAAAAAAAAE="> <pickle> <tuple> - <tuple> - <string>Products.ERP5Form.EditorField</string> - <string>EditorField</string> - </tuple> - <none/> + <global name="EditorField" module="Products.ERP5Form.EditorField"/> + <tuple/> </tuple> </pickle> <pickle> @@ -186,6 +183,10 @@ <key> <string>required</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>text_editor</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>title</string> </key> <value> <string></string> </value> @@ -290,18 +291,15 @@ <record id="2" aka="AAAAAAAAAAI="> <pickle> <tuple> - <tuple> - <string>Products.Formulator.TALESField</string> - <string>TALESMethod</string> - </tuple> - <none/> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + <tuple/> </tuple> </pickle> <pickle> <dictionary> <item> <key> <string>_text</string> </key> - <value> <string>here/asStrippedHTML</string> </value> + <value> <string>python:here.Event_getTextContentCorrespondToFormat(editable=False)</string> </value> </item> </dictionary> </pickle> @@ -309,11 +307,8 @@ <record id="3" aka="AAAAAAAAAAM="> <pickle> <tuple> - <tuple> - <string>Products.Formulator.TALESField</string> - <string>TALESMethod</string> - </tuple> - <none/> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + <tuple/> </tuple> </pickle> <pickle> diff --git a/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_workflow/scripts/Event_createRelatedEvent.xml b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_workflow/scripts/Event_createRelatedEvent.xml new file mode 100644 index 0000000000000000000000000000000000000000..33991b6ddf46cbfcebf0fed57c5148dcd1e63346 --- /dev/null +++ b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_workflow/scripts/Event_createRelatedEvent.xml @@ -0,0 +1,165 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Python_magic</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>Script_magic</string> </key> + <value> <int>3</int> </value> + </item> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary> + <item> + <key> <string>name_container</string> </key> + <value> <string>container</string> </value> + </item> + <item> + <key> <string>name_context</string> </key> + <value> <string>context</string> </value> + </item> + <item> + <key> <string>name_m_self</string> </key> + <value> <string>script</string> </value> + </item> + <item> + <key> <string>name_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_body</string> </key> + <value> <string># this script allows to create a new related event quickly\n +\n +portal = state_change.getPortal()\n +portal_workflow = portal.portal_workflow\n +event = state_change[\'object\']\n +\n +title = portal_workflow.getInfoFor(event,\n + \'related_event_title\',\n + wf_id=\'event_workflow\')\n +\n +description = portal_workflow.getInfoFor(event,\n + \'related_event_description\',\n + wf_id=\'event_workflow\')\n +\n +portal_type = portal_workflow.getInfoFor(event,\n + \'related_event_portal_type\',\n + wf_id=\'event_workflow\')\n +\n +event.Event_createRelatedEvent(portal_type, title, description)\n +</string> </value> + </item> + <item> + <key> <string>_code</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_filepath</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string>state_change</string> </value> + </item> + <item> + <key> <string>errors</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>func_code</string> </key> + <value> + <object> + <klass> + <global name="FuncCode" module="Shared.DC.Scripts.Signature"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>co_argcount</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>co_varnames</string> </key> + <value> + <tuple> + <string>state_change</string> + <string>_getattr_</string> + <string>portal</string> + <string>portal_workflow</string> + <string>_getitem_</string> + <string>event</string> + <string>title</string> + <string>description</string> + <string>portal_type</string> + </tuple> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>func_defaults</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>Event_createRelatedEvent</string> </value> + </item> + <item> + <key> <string>warnings</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_workflow/states/acknowledged.xml b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_workflow/states/acknowledged.xml index d48a4e1aa2efb16868a00a2aef2ffdfec820cac1..f225bde4de34ab31c9b192f4386991e674ac4b75 100644 --- a/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_workflow/states/acknowledged.xml +++ b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_workflow/states/acknowledged.xml @@ -36,7 +36,10 @@ <item> <key> <string>transitions</string> </key> <value> - <tuple/> + <tuple> + <string>create_related_event</string> + <string>create_related_event_action</string> + </tuple> </value> </item> <item> diff --git a/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_workflow/states/responded.xml b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_workflow/states/responded.xml index 78bd40cfe30cfefbc3a403fca9926c7051d749d9..d595a5bee1aa0610abb7446c17e0cbb725958ca7 100644 --- a/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_workflow/states/responded.xml +++ b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_workflow/states/responded.xml @@ -36,7 +36,10 @@ <item> <key> <string>transitions</string> </key> <value> - <tuple/> + <tuple> + <string>create_related_event</string> + <string>create_related_event_action</string> + </tuple> </value> </item> <item> diff --git a/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_workflow/transitions/create_related_event.xml b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_workflow/transitions/create_related_event.xml new file mode 100644 index 0000000000000000000000000000000000000000..cb3116a6fd1fa9e7e740f0f768bf45763026c5b6 --- /dev/null +++ b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_workflow/transitions/create_related_event.xml @@ -0,0 +1,67 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>actbox_category</string> </key> + <value> <string>workflow</string> </value> + </item> + <item> + <key> <string>actbox_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>actbox_url</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>after_script_name</string> </key> + <value> <string>Event_createRelatedEvent</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>guard</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>create_related_event</string> </value> + </item> + <item> + <key> <string>new_state_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>script_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>trigger_type</string> </key> + <value> <int>2</int> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_workflow/transitions/create_related_event_action.xml b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_workflow/transitions/create_related_event_action.xml new file mode 100644 index 0000000000000000000000000000000000000000..3ca89327b0011afcb7d1d99fa4eccd3744d66bac --- /dev/null +++ b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_workflow/transitions/create_related_event_action.xml @@ -0,0 +1,179 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>actbox_category</string> </key> + <value> <string>workflow</string> </value> + </item> + <item> + <key> <string>actbox_name</string> </key> + <value> <string>Create Related Event</string> </value> + </item> + <item> + <key> <string>actbox_url</string> </key> + <value> <string>%(content_url)s/Event_viewCreateRelatedEventActionDialog?workflow_action=create_related_event_action</string> </value> + </item> + <item> + <key> <string>after_script_name</string> </key> + <value> <string>create_related_event</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>This action create a new event which follow up the ticket of the context event. This transition don\'t do anything for the context event.\r\n +</string> </value> + </item> + <item> + <key> <string>guard</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>create_related_event_action</string> </value> + </item> + <item> + <key> <string>new_state_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>script_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Create Related Event</string> </value> + </item> + <item> + <key> <string>trigger_type</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>var_exprs</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="Guard" module="Products.DCWorkflow.Guard"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>permissions</string> </key> + <value> + <tuple> + <string>View</string> + </tuple> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <tuple> + <global name="PersistentMapping" module="Persistence.mapping"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary> + <item> + <key> <string>related_event_description</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent> + </value> + </item> + <item> + <key> <string>related_event_portal_type</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAU=</string> </persistent> + </value> + </item> + <item> + <key> <string>related_event_title</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAY=</string> </persistent> + </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="4" aka="AAAAAAAAAAQ="> + <pickle> + <tuple> + <global name="Expression" module="Products.CMFCore.Expression"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>python:state_change.kwargs.get(\'related_event_description\')</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="5" aka="AAAAAAAAAAU="> + <pickle> + <tuple> + <global name="Expression" module="Products.CMFCore.Expression"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>python:state_change.kwargs.get(\'related_event_portal_type\')</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="6" aka="AAAAAAAAAAY="> + <pickle> + <tuple> + <global name="Expression" module="Products.CMFCore.Expression"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>python:state_change.kwargs.get(\'related_event_title\')</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_workflow/variables/related_event_description.xml b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_workflow/variables/related_event_description.xml new file mode 100644 index 0000000000000000000000000000000000000000..b17373624d6b72f3bfece69ff144e7d2a304f722 --- /dev/null +++ b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_workflow/variables/related_event_description.xml @@ -0,0 +1,57 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="VariableDefinition" module="Products.DCWorkflow.Variables"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>default_expr</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>default_value</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>Stores the description which will be used to create a related event.</string> </value> + </item> + <item> + <key> <string>for_catalog</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>for_status</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>related_event_description</string> </value> + </item> + <item> + <key> <string>info_guard</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>update_always</string> </key> + <value> <int>0</int> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_workflow/variables/related_event_portal_type.xml b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_workflow/variables/related_event_portal_type.xml new file mode 100644 index 0000000000000000000000000000000000000000..e0580d04ee93b45b6410b36d2fb334a6a5e82f7c --- /dev/null +++ b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_workflow/variables/related_event_portal_type.xml @@ -0,0 +1,57 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="VariableDefinition" module="Products.DCWorkflow.Variables"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>default_expr</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>default_value</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>Stores the portal type which will be used to create a related event.</string> </value> + </item> + <item> + <key> <string>for_catalog</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>for_status</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>related_event_portal_type</string> </value> + </item> + <item> + <key> <string>info_guard</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>update_always</string> </key> + <value> <int>0</int> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_workflow/variables/related_event_title.xml b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_workflow/variables/related_event_title.xml new file mode 100644 index 0000000000000000000000000000000000000000..d41a38735832264e2f03f99d5cb025805e749113 --- /dev/null +++ b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_workflow/variables/related_event_title.xml @@ -0,0 +1,57 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="VariableDefinition" module="Products.DCWorkflow.Variables"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>default_expr</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>default_value</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>Stores the title which will be used to create a related event.</string> </value> + </item> + <item> + <key> <string>for_catalog</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>for_status</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>related_event_title</string> </value> + </item> + <item> + <key> <string>info_guard</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>update_always</string> </key> + <value> <int>0</int> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_crm/bt/change_log b/bt5/erp5_crm/bt/change_log index 58843ddaa83c918288812fc83ae12694417ee5f9..8b393212d03d7859bce080def04ac63fe8831e58 100644 --- a/bt5/erp5_crm/bt/change_log +++ b/bt5/erp5_crm/bt/change_log @@ -1,3 +1,7 @@ +2008-5-27 yusei +* Replace "Create Related Event" action with a equivalent workflow method. +* Fixed appearance of content in view and preview. + 2008-5-26 yusei * Added a new content column in event list in ticket view and fixed to display correct title in the list. diff --git a/bt5/erp5_crm/bt/revision b/bt5/erp5_crm/bt/revision index e0c1820214c8224c0826cc2fce96843818aa712b..34251f6b242e79eb02dc1c4040ddbaa9fc924fce 100644 --- a/bt5/erp5_crm/bt/revision +++ b/bt5/erp5_crm/bt/revision @@ -1 +1 @@ -244 \ No newline at end of file +247 \ 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 498f7604e78424bf902f3b4018d9c45216168f4b..e69f45ac7205d28362368b83b02d45141880d13f 100644 --- a/bt5/erp5_crm/bt/template_action_path_list +++ b/bt5/erp5_crm/bt/template_action_path_list @@ -8,17 +8,14 @@ Event Module | event_detailed_report Event Module | view Event Module | workflow_report Fax Message | assessment -Fax Message | create_related_event Fax Message | preview Fax Message | related_events Fax Message | view Letter | assessment -Letter | create_related_event Letter | preview Letter | related_events Letter | view Mail Message | assessment -Mail Message | create_related_event Mail Message | preview Mail Message | related_events Mail Message | view @@ -28,7 +25,6 @@ Meeting Module | view Meeting | new_event Meeting | view Note | assessment -Note | create_related_event Note | preview Note | related_events Note | view @@ -38,7 +34,6 @@ Person Module | create_event_list Person | add_event Person | view_event_list Phone Call | assessment -Phone Call | create_related_event Phone Call | preview Phone Call | related_events Phone Call | view @@ -54,12 +49,10 @@ Support Request | new_event Support Request | view System Preference | crm_preference Visit | assessment -Visit | create_related_event Visit | preview Visit | related_events Visit | view Web Message | assessment -Web Message | create_related_event Web Message | preview Web Message | related_events Web Message | view \ No newline at end of file