From 8d47850476a25c57beaf7fa8ed24a79db5dc5373 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Fri, 10 Dec 2010 09:41:38 +0000
Subject: [PATCH] translate

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41306 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../erp5_trade/SaleOrderLine_getQuantityUnitItemList.xml       | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/SaleOrderLine_getQuantityUnitItemList.xml b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/SaleOrderLine_getQuantityUnitItemList.xml
index 641ddde5bc..371f9643a0 100644
--- a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/SaleOrderLine_getQuantityUnitItemList.xml
+++ b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/SaleOrderLine_getQuantityUnitItemList.xml
@@ -61,6 +61,7 @@ base_category = portal.portal_categories.quantity_unit\n
 list_method_id = portal.portal_preferences.\\\n
     getPreferredCategoryChildItemListMethodId(\n
                                   \'getCategoryChildCompactLogicalPathItemList\')\n
+\n
 method = getattr(base_category, list_method_id)\n
 item_list = method(base=0, local_sort_id=(\'int_index\', \'translated_title\'),\n
                    checked_permission=\'View\')\n
@@ -103,7 +104,7 @@ if resource_value is None:\n
       resource_value = resource_list[0]\n
 \n
 if resource_value is not None:\n
- quantity_unit_list = [(x.getLogicalPath(), x.getCategoryRelativeUrl(base=0))\n
+ quantity_unit_list = [(x.getTranslatedLogicalPath(), x.getCategoryRelativeUrl(base=0))\n
                        for x in resource_value.getQuantityUnitValueList()]\n
  # return the first quantity_unit item of resource\n
  result_item_list.extend(quantity_unit_list)\n
-- 
2.30.9