Commit e39dd0c2 authored by Jérome Perrin's avatar Jérome Perrin

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
parent e31176ca
...@@ -81,8 +81,9 @@ ...@@ -81,8 +81,9 @@
\n \n
def getSubLineList(obj):\n def getSubLineList(obj):\n
sub_list = []\n sub_list = []\n
for x in obj.searchFolder(portal_type=context.getPortalOrderMovementTypeList(),\n for x in obj.contentValues(portal_type=context.getPortalOrderMovementTypeList(),\n
sort_on=[(\'int_index\', \'ascending\'), (\'reference\', \'ascending\')]):\n sort_on=[(\'int_index\', \'ascending\'), (\'reference\', \'ascending\')],\n
checked_permission=\'View\'):\n
if x.getPortalType() in obj.getPortalTaxMovementTypeList():\n if x.getPortalType() in obj.getPortalTaxMovementTypeList():\n
continue\n continue\n
sub_list.append(x)\n sub_list.append(x)\n
......
408 409
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment