From 364149d5a70affc2706139d5eb5748bce7a0e610 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com> Date: Thu, 15 Oct 2009 12:30:51 +0000 Subject: [PATCH] - allow to jump from Person to its related as source (Assignee) Task and Task Reports git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29671 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../portal_types/Person/jump_to_task.xml | 99 +++++++++++++++++++ .../Person/jump_to_task_report.xml | 99 +++++++++++++++++++ bt5/erp5_project/bt/revision | 2 +- bt5/erp5_project/bt/template_action_path_list | 2 + 4 files changed, 201 insertions(+), 1 deletion(-) create mode 100644 bt5/erp5_project/ActionTemplateItem/portal_types/Person/jump_to_task.xml create mode 100644 bt5/erp5_project/ActionTemplateItem/portal_types/Person/jump_to_task_report.xml diff --git a/bt5/erp5_project/ActionTemplateItem/portal_types/Person/jump_to_task.xml b/bt5/erp5_project/ActionTemplateItem/portal_types/Person/jump_to_task.xml new file mode 100644 index 0000000000..0f897b842c --- /dev/null +++ b/bt5/erp5_project/ActionTemplateItem/portal_types/Person/jump_to_task.xml @@ -0,0 +1,99 @@ +<?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>action</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>category</string> </key> + <value> <string>object_jump</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>jump_to_task</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>23.0</float> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Task</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 encoding="cdata"><![CDATA[ + +string:${object_url}/Base_jumpToRelatedObject?base_category=source&portal_type=Task + +]]></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: portal.Base_checkPermission(\'task_module\', \'View\')</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_project/ActionTemplateItem/portal_types/Person/jump_to_task_report.xml b/bt5/erp5_project/ActionTemplateItem/portal_types/Person/jump_to_task_report.xml new file mode 100644 index 0000000000..ccbf26dfa7 --- /dev/null +++ b/bt5/erp5_project/ActionTemplateItem/portal_types/Person/jump_to_task_report.xml @@ -0,0 +1,99 @@ +<?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>action</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>category</string> </key> + <value> <string>object_jump</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>jump_to_task_report</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>24.0</float> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Task Report</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 encoding="cdata"><![CDATA[ + +string:${object_url}/Base_jumpToRelatedObject?base_category=source&portal_type=Task Report + +]]></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: portal.Base_checkPermission(\'task_report_module\', \'View\')</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_project/bt/revision b/bt5/erp5_project/bt/revision index c029c62fca..694f34bc62 100644 --- a/bt5/erp5_project/bt/revision +++ b/bt5/erp5_project/bt/revision @@ -1 +1 @@ -672 \ No newline at end of file +673 \ No newline at end of file diff --git a/bt5/erp5_project/bt/template_action_path_list b/bt5/erp5_project/bt/template_action_path_list index 7dbe085481..dfd1ea08cf 100644 --- a/bt5/erp5_project/bt/template_action_path_list +++ b/bt5/erp5_project/bt/template_action_path_list @@ -1,3 +1,5 @@ +Person | jump_to_task +Person | jump_to_task_report Project Cell | view Project Line | add_task_related Project Line | available_budget -- 2.30.9