Commit e4168405 authored by Łukasz Nowak's avatar Łukasz Nowak

- synchronize selection with production order module view selection

- generate domain only for selection

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22431 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1ab76795
......@@ -69,8 +69,12 @@
domain_list = []\n
supply_chain_module = context.getPortalObject().supply_chain_module\n
if depth == 0:\n
category_list = [q.getObject() for q in supply_chain_module.searchFolder()]\n
\n
category_list = []\n
for q in context.portal_selections.getSelectionValueList(context=context,\n
selection_name= \'production_order_selection\'):\n
specialise = q.getSpecialiseValue()\n
if specialise is not None and specialise not in category_list:\n
category_list.append(specialise) \n
else:\n
return domain_list\n
\n
......@@ -141,11 +145,11 @@ return domain_list\n
<string>request</string>
<string>domain_list</string>
<string>supply_chain_module</string>
<string>append</string>
<string>$append0</string>
<string>category_list</string>
<string>_getiter_</string>
<string>q</string>
<string>category_list</string>
<string>specialise</string>
<string>None</string>
<string>category</string>
<string>domain</string>
<string>script</string>
......
......@@ -127,7 +127,7 @@
</item>
<item>
<key> <string>selection_name</string> </key>
<value> <string>production_order_module_supply_chain_planning_selection</string> </value>
<value> <string>production_order_selection</string> </value>
</item>
<item>
<key> <string>target</string> </key>
......
352
\ No newline at end of file
355
\ 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