diff --git a/bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/ProductionDelivery_getFutureInventoryList.xml b/bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/ProductionDelivery_getFutureInventoryList.xml new file mode 100644 index 0000000000000000000000000000000000000000..c2566f5dc8ea72edc729ee49f46c1124b9ececaa --- /dev/null +++ b/bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/ProductionDelivery_getFutureInventoryList.xml @@ -0,0 +1,162 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Python_magic</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>Script_magic</string> </key> + <value> <int>3</int> </value> + </item> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary> + <item> + <key> <string>name_container</string> </key> + <value> <string>container</string> </value> + </item> + <item> + <key> <string>name_context</string> </key> + <value> <string>context</string> </value> + </item> + <item> + <key> <string>name_m_self</string> </key> + <value> <string>script</string> </value> + </item> + <item> + <key> <string>name_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_body</string> </key> + <value> <string>"""List Method script to show only inventory for destination"""\n +\n +portal_type_dict_mapping = {\n + \'Production Order\' : {\'node_uid\' : context.getDestinationUid()},\n +}\n +kw[\'group_by_node\'] = 1\n +kw[\'group_by_section\'] = 0\n +kw[\'group_by_variation\'] = 1\n +kw[\'explanation_uid\'] = context.getUid()\n +\n +kw.update( **portal_type_dict_mapping.get(context.getPortalType(),{}) )\n +return context.getFutureInventoryList(*args,**kw)\n +</string> </value> + </item> + <item> + <key> <string>_code</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_filepath</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string>*args, **kw</string> </value> + </item> + <item> + <key> <string>errors</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>func_code</string> </key> + <value> + <object> + <klass> + <global name="FuncCode" module="Shared.DC.Scripts.Signature"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>co_argcount</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>co_varnames</string> </key> + <value> + <tuple> + <string>args</string> + <string>kw</string> + <string>_getattr_</string> + <string>context</string> + <string>portal_type_dict_mapping</string> + <string>_write_</string> + <string>_apply_</string> + </tuple> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>func_defaults</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>ProductionDelivery_getFutureInventoryList</string> </value> + </item> + <item> + <key> <string>warnings</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/ProductionDelivery_viewInventory/listbox.xml b/bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/ProductionDelivery_viewInventory/listbox.xml index e80935999a8635f89a1d45464f1ff6452feac8d5..2d1642aa9529a4200301f8c8ee2cf6b789fb0852 100644 --- a/bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/ProductionDelivery_viewInventory/listbox.xml +++ b/bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/ProductionDelivery_viewInventory/listbox.xml @@ -17,7 +17,6 @@ <string>columns</string> <string>list_method</string> <string>selection_name</string> - <string>default_params</string> <string>domain_tree</string> <string>domain_root_list</string> <string>list_action</string> @@ -126,25 +125,6 @@ </list> </value> </item> - <item> - <key> <string>default_params</string> </key> - <value> - <list> - <tuple> - <string>group_by_node</string> - <string>1</string> - </tuple> - <tuple> - <string>group_by_variation</string> - <string>1</string> - </tuple> - <tuple> - <string>group_by_section</string> - <string>0</string> - </tuple> - </list> - </value> - </item> <item> <key> <string>domain_root_list</string> </key> <value> @@ -207,7 +187,7 @@ <dictionary> <item> <key> <string>method_name</string> </key> - <value> <string>getFutureInventoryList</string> </value> + <value> <string>ProductionDelivery_getFutureInventoryList</string> </value> </item> </dictionary> </pickle> diff --git a/bt5/erp5_mrp/bt/revision b/bt5/erp5_mrp/bt/revision index 387c46fdec89e3cb2d1358c93270eeeeec85d13f..d35d5f782448e98ccbcb1fa8e162c079cc627e52 100644 --- a/bt5/erp5_mrp/bt/revision +++ b/bt5/erp5_mrp/bt/revision @@ -1 +1 @@ -346 \ No newline at end of file +347 \ No newline at end of file