From e39dd0c24bc3ff72d2ca789892304cf2f04862ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Wed, 2 Jul 2008 11:53:12 +0000 Subject: [PATCH] don't use searchFolder to get order lines git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22212 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../portal_skins/erp5_trade/Order_getODTDataDict.xml | 5 +++-- bt5/erp5_trade/bt/revision | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/Order_getODTDataDict.xml b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/Order_getODTDataDict.xml index 12c91dced4..833ecbcc62 100644 --- a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/Order_getODTDataDict.xml +++ b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/Order_getODTDataDict.xml @@ -81,8 +81,9 @@ \n def getSubLineList(obj):\n sub_list = []\n - for x in obj.searchFolder(portal_type=context.getPortalOrderMovementTypeList(),\n - sort_on=[(\'int_index\', \'ascending\'), (\'reference\', \'ascending\')]):\n + for x in obj.contentValues(portal_type=context.getPortalOrderMovementTypeList(),\n + sort_on=[(\'int_index\', \'ascending\'), (\'reference\', \'ascending\')],\n + checked_permission=\'View\'):\n if x.getPortalType() in obj.getPortalTaxMovementTypeList():\n continue\n sub_list.append(x)\n diff --git a/bt5/erp5_trade/bt/revision b/bt5/erp5_trade/bt/revision index 0ad1c6bd53..d9beed0e29 100644 --- a/bt5/erp5_trade/bt/revision +++ b/bt5/erp5_trade/bt/revision @@ -1 +1 @@ -408 \ No newline at end of file +409 \ No newline at end of file -- 2.30.9