From 0f5f8e5cf4654ed8f2a5c8ac026049908be12207 Mon Sep 17 00:00:00 2001 From: Rafael Monnerat <rafael@nexedi.com> Date: Tue, 27 May 2008 18:46:50 +0000 Subject: [PATCH] Set a local Tales. changed to use here.portal_categories['quantity_unit'] instead get category from field Id git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21177 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../my_task_line_quantity_unit.xml | 40 ++++++++----------- bt5/erp5_project/bt/revision | 2 +- 2 files changed, 18 insertions(+), 24 deletions(-) diff --git a/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Task_viewFieldLibrary/my_task_line_quantity_unit.xml b/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Task_viewFieldLibrary/my_task_line_quantity_unit.xml index 3b3f447ee0..91745c778d 100644 --- a/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Task_viewFieldLibrary/my_task_line_quantity_unit.xml +++ b/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Task_viewFieldLibrary/my_task_line_quantity_unit.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> @@ -16,6 +13,7 @@ <key> <string>delegated_list</string> </key> <value> <list> + <string>items</string> <string>enabled</string> </list> </value> @@ -59,7 +57,7 @@ <value> <dictionary> <item> - <key> <string>enabled</string> </key> + <key> <string>enabled</string> </key> <value> <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> </value> @@ -73,7 +71,7 @@ <value> <string></string> </value> </item> <item> - <key> <string>items</string> </key> + <key> <string>items</string> </key> <value> <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> </value> @@ -82,10 +80,6 @@ <key> <string>target</string> </key> <value> <string></string> </value> </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> </dictionary> </value> </item> @@ -94,7 +88,7 @@ <value> <dictionary> <item> - <key> <string>enabled</string> </key> + <key> <string>enabled</string> </key> <value> <int>0</int> </value> </item> <item> @@ -105,6 +99,12 @@ <key> <string>form_id</string> </key> <value> <string>TaskLine_viewFieldLibrary</string> </value> </item> + <item> + <key> <string>items</string> </key> + <value> + <list/> + </value> + </item> <item> <key> <string>target</string> </key> <value> <string>Click to edit the target</string> </value> @@ -118,11 +118,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> @@ -137,18 +134,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: getattr(here.portal_categories[\'quantity_unit\'], preferences.getPreference(\'preferred_category_child_item_list_method_id\', \'getCategoryChildCompactLogicalPathItemList\'))(local_sort_id="int_index")</string> </value> + <value> <string>python: getattr(here.portal_categories[\'quantity_unit\'], preferences.getPreference(\'preferred_category_child_item_list_method_id\', \'getCategoryChildCompactLogicalPathItemList\'))(local_sort_id=(\'int_index\', \'translated_title\'), checked_permission=\'View\')</string> </value> </item> </dictionary> </pickle> diff --git a/bt5/erp5_project/bt/revision b/bt5/erp5_project/bt/revision index eb1f49486a..84ccffd556 100644 --- a/bt5/erp5_project/bt/revision +++ b/bt5/erp5_project/bt/revision @@ -1 +1 @@ -500 \ No newline at end of file +505 \ No newline at end of file -- 2.30.9