Commit 3358754b authored by Nicolas Delaby's avatar Nicolas Delaby

Display Use values defined on movement if configured

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41245 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6ccf7d01
...@@ -62,7 +62,7 @@ resource = context.getResourceValue()\n ...@@ -62,7 +62,7 @@ resource = context.getResourceValue()\n
if resource is None:\n if resource is None:\n
item_display_list = item_list\n item_display_list = item_list\n
else:\n else:\n
selected_use_list = [use_value.getCategoryRelativeUrl() for use_value in resource.getUseValueList()]\n selected_use_list = [use_value.getCategoryRelativeUrl() for use_value in resource.getUseValueList() + context.getUseValueList()]\n
item_display_list = [(\'\', \'\')] + [item for item in item_list if item[1] in selected_use_list]\n item_display_list = [(\'\', \'\')] + [item for item in item_list if item[1] in selected_use_list]\n
\n \n
return item_display_list\n return item_display_list\n
...@@ -114,8 +114,7 @@ return item_display_list\n ...@@ -114,8 +114,7 @@ return item_display_list\n
<string>resource</string> <string>resource</string>
<string>None</string> <string>None</string>
<string>item_display_list</string> <string>item_display_list</string>
<string>append</string> <string>$list0</string>
<string>$append0</string>
<string>_getiter_</string> <string>_getiter_</string>
<string>use_value</string> <string>use_value</string>
<string>selected_use_list</string> <string>selected_use_list</string>
......
1066 1067
\ 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