From 5e05622ec7ef1ee39359ff2e9396411154771de1 Mon Sep 17 00:00:00 2001 From: Sebastien Robin <seb@nexedi.com> Date: Wed, 14 Sep 2016 12:54:21 +0000 Subject: [PATCH] mrp: add jump from production order line to transformation --- .../jump_to_transformation.xml | 100 ++++++++++++++++++ bt5/erp5_mrp/bt/template_action_path_list | 1 + 2 files changed, 101 insertions(+) create mode 100644 bt5/erp5_mrp/ActionTemplateItem/portal_types/Production%20Order%20Line/jump_to_transformation.xml diff --git a/bt5/erp5_mrp/ActionTemplateItem/portal_types/Production%20Order%20Line/jump_to_transformation.xml b/bt5/erp5_mrp/ActionTemplateItem/portal_types/Production%20Order%20Line/jump_to_transformation.xml new file mode 100644 index 0000000000..676df7c6f8 --- /dev/null +++ b/bt5/erp5_mrp/ActionTemplateItem/portal_types/Production%20Order%20Line/jump_to_transformation.xml @@ -0,0 +1,100 @@ +<?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>categories</string> </key> + <value> + <tuple> + <string>action_type/object_jump</string> + </tuple> + </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> + <none/> + </value> + </item> + <item> + <key> <string>icon</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>jump_to_transformation</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>5.0</float> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Transformation</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 encoding="cdata"><![CDATA[ + +string:${object_url}/Base_jumpToRelatedObject?base_category=specialise&portal_type=Transformation&related:int=0 + +]]></string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <global name="Expression" module="Products.CMFCore.Expression"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>python: portal.Base_checkPermission(\'transformation_module\', \'View\')</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_mrp/bt/template_action_path_list b/bt5/erp5_mrp/bt/template_action_path_list index 6aff781e87..4642b7f3dc 100644 --- a/bt5/erp5_mrp/bt/template_action_path_list +++ b/bt5/erp5_mrp/bt/template_action_path_list @@ -1,4 +1,5 @@ Production Order Cell | view +Production Order Line | jump_to_transformation Production Order Line | price_view Production Order Line | quantity_view Production Order Line | view -- 2.30.9