diff --git a/bt5/erp5_base/ActionTemplateItem/portal_types/portal_actions/jump_related_object.xml b/bt5/erp5_base/ActionTemplateItem/portal_types/portal_actions/jump_related_object.xml new file mode 100644 index 0000000000000000000000000000000000000000..5d70c2e153880d18cfc218727c16b2b0a080f0e0 --- /dev/null +++ b/bt5/erp5_base/ActionTemplateItem/portal_types/portal_actions/jump_related_object.xml @@ -0,0 +1,71 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/> + </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> <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>jump_related_object</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>Related Objects</string> </value> + </item> + <item> + <key> <string>visible</string> </key> + <value> <int>1</int> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="Expression" module="Products.CMFCore.Expression"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>python:object.absolute_url() + \'/Base_jumpToRelatedObjectList?category.category_uid=\' + str(object.getUid())</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_base/bt/template_action_path_list b/bt5/erp5_base/bt/template_action_path_list index 1c34e343bc8ef7c3a04ba46ceb9abb07b7cb59b9..6758becf4ad22713ed56627df053eedec026c5fd 100644 --- a/bt5/erp5_base/bt/template_action_path_list +++ b/bt5/erp5_base/bt/template_action_path_list @@ -99,4 +99,5 @@ Title Movement Group | view Variant Movement Group | view Variation Property Movement Group | view portal_actions | jump_query -portal_actions | post_query +portal_actions | jump_related_object +portal_actions | post_query \ No newline at end of file