Commit c522236a authored by Mame Coumba Sall's avatar Mame Coumba Sall

2009-05-19 mame

*rename form actions and scripts for delivery line creation on item
*add fast input for selection of items
*modified delete_action transition on item_workflow
*correct script for delivery line fast input creation

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27064 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cde6ccca
<base_category_list>
<portal_type id="Item">
<item>fishing_zone</item>
</portal_type>
</base_category_list>
\ No newline at end of file
<workflow_chain>
<chain>
<type>Internal Packing List Line</type>
<workflow>aggregate_interaction_workflow</workflow>
</chain>
<chain>
<type>Item</type>
<workflow>edit_workflow, item_workflow</workflow>
</chain>
<chain>
<type>Purchase Order Line</type>
<workflow>aggregate_interaction_workflow</workflow>
</chain>
<chain>
<type>Purchase Packing List Line</type>
<workflow>aggregate_interaction_workflow</workflow>
</chain>
<chain>
<type>Returned Sale Packing List Line</type>
<workflow>aggregate_interaction_workflow</workflow>
</chain>
<chain>
<type>Sale Order Line</type>
<workflow>aggregate_interaction_workflow</workflow>
</chain>
<chain>
<type>Sale Packing List Line</type>
<workflow>aggregate_interaction_workflow</workflow>
</chain>
<chain>
<type>Service Report</type>
<workflow>edit_workflow, item_workflow</workflow>
......
......@@ -135,10 +135,8 @@ for item in object_list:\n
variation_category_list=cell_key)\n
cell.setAggregateValue(item)\n
\n
form_id = \'/\'.join(pl_value.getPhysicalPath())\n
return context.Base_redirect(form_id, keep_items=dict(\n
portal_status_message=translateString(\'Items affected\')))\n
#context.REQUEST[\'RESPONSE\'].redirect(\'/\'.join(pl_value.getPhysicalPath()))\n
</string> </value>
</item>
<item>
......@@ -149,7 +147,7 @@ return context.Base_redirect(form_id, keep_items=dict(\n
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>uids=[], listbox_uid=[],destination=None,destination_section=None,portal_type=None,site_suggestion=None,source=None,source_section=None,start_date=None,quantity=None,stop_date=None,title=\'\',**kw</string> </value>
<value> <string>uids=[], listbox_uid=[],form_id=\'view\',destination_section=None,portal_type=None,site_suggestion=None,source=None,source_section=None,start_date=None,quantity=None,stop_date=None,title=\'\',**kw</string> </value>
</item>
<item>
<key> <string>errors</string> </key>
......@@ -177,7 +175,7 @@ return context.Base_redirect(form_id, keep_items=dict(\n
<tuple>
<string>uids</string>
<string>listbox_uid</string>
<string>destination</string>
<string>form_id</string>
<string>destination_section</string>
<string>portal_type</string>
<string>site_suggestion</string>
......@@ -227,7 +225,6 @@ return context.Base_redirect(form_id, keep_items=dict(\n
<string>cell_key_list</string>
<string>cell_key</string>
<string>cell</string>
<string>form_id</string>
<string>dict</string>
</tuple>
</value>
......@@ -243,7 +240,7 @@ return context.Base_redirect(form_id, keep_items=dict(\n
<tuple>
<list/>
<list/>
<none/>
<string>view</string>
<none/>
<none/>
<none/>
......@@ -258,7 +255,7 @@ return context.Base_redirect(form_id, keep_items=dict(\n
</item>
<item>
<key> <string>id</string> </key>
<value> <string>ItemModule_createRelatedAffectationValidate</string> </value>
<value> <string>ItemModule_createDeliveryLine</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
......
......@@ -38,7 +38,7 @@
</item>
<item>
<key> <string>action</string> </key>
<value> <string>ItemModule_createRelatedAffectationValidate</string> </value>
<value> <string>ItemModule_createDeliveryLine</string> </value>
</item>
<item>
<key> <string>description</string> </key>
......@@ -116,7 +116,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>ItemModule_createRelatedAffectationFormDialog</string> </value>
<value> <string>ItemModule_viewDeliveryLineCreationDialog</string> </value>
</item>
<item>
<key> <string>method</string> </key>
......@@ -124,11 +124,11 @@
</item>
<item>
<key> <string>name</string> </key>
<value> <string>ItemModule_createAffectationFormDialog</string> </value>
<value> <string>ItemModule_viewDeliveryLineCreationDialog</string> </value>
</item>
<item>
<key> <string>pt</string> </key>
<value> <string>form_view_dialog</string> </value>
<value> <string>form_dialog</string> </value>
</item>
<item>
<key> <string>row_length</string> </key>
......@@ -148,7 +148,7 @@
</item>
<item>
<key> <string>update_action</string> </key>
<value> <string>ItemModule_createRelatedAffectationFormDialog</string> </value>
<value> <string>ItemModule_viewDeliveryLineCreationDialog</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -54,6 +54,7 @@
<item>
<key> <string>_body</string> </key>
<value> <string># Check data validity\n
from Products.ERP5Type.Message import translateString\n
source = context.Item_getCurrentSiteValue()\n
source_section = context.Item_getCurrentOwnerTitle(with_title=0)\n
\n
......@@ -81,14 +82,12 @@ pl_value = module.newContent(**pl_dict)\n
\n
pl_line_value = pl_value.newContent(**pl_line_dict)\n
pl_line_value.setResourceValue(context.Item_getResourceValue())\n
context.log(context.Item_getVariationOnMovement())\n
if context.Item_getVariationOnMovement()==[]:\n
pl_line_value.setAggregateValue(context)\n
else:\n
pl_line_value.setVariationCategoryList(context.Item_getVariationOnMovement(current=1))\n
base_id = \'movement\'\n
cell_key_list = list(pl_line_value.getCellKeyList(base_id=base_id))\n
context.log(cell_key_list)\n
cell_key_list.sort()\n
for cell_key in cell_key_list: \n
cell = pl_line_value.newCell(base_id=base_id, \\\n
......@@ -98,7 +97,7 @@ else:\n
predicate_category_list=cell_key,\n
variation_category_list=cell_key)\n
cell.setAggregateValue(context)\n
form_id = \'/\'.join(pl_value.getPhysicalPath())\n
\n
return context.Base_redirect(form_id, keep_items=dict(\n
portal_status_message=translateString(\'Item affected\')))\n
</string> </value>
......@@ -111,7 +110,7 @@ return context.Base_redirect(form_id, keep_items=dict(\n
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>destination=None,destination_section=None,portal_type=None,site_suggestion=None,start_date=None,quantity=None,start_date=None,stop_date=None,title=\'\',quantity_unit=None,**kw</string> </value>
<value> <string>form_id=\'view\',destination_section=None,portal_type=None,site_suggestion=None,start_date=None,quantity=None,start_date=None,stop_date=None,title=\'\',quantity_unit=None,**kw</string> </value>
</item>
<item>
<key> <string>errors</string> </key>
......@@ -137,7 +136,7 @@ return context.Base_redirect(form_id, keep_items=dict(\n
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>destination</string>
<string>form_id</string>
<string>destination_section</string>
<string>portal_type</string>
<string>site_suggestion</string>
......@@ -148,6 +147,8 @@ return context.Base_redirect(form_id, keep_items=dict(\n
<string>title</string>
<string>quantity_unit</string>
<string>kw</string>
<string>Products.ERP5Type.Message</string>
<string>translateString</string>
<string>_getattr_</string>
<string>context</string>
<string>source</string>
......@@ -170,9 +171,7 @@ return context.Base_redirect(form_id, keep_items=dict(\n
<string>cell_key_list</string>
<string>cell_key</string>
<string>cell</string>
<string>form_id</string>
<string>dict</string>
<string>translateString</string>
</tuple>
</value>
</item>
......@@ -185,7 +184,7 @@ return context.Base_redirect(form_id, keep_items=dict(\n
<key> <string>func_defaults</string> </key>
<value>
<tuple>
<none/>
<string>view</string>
<none/>
<none/>
<none/>
......@@ -200,7 +199,7 @@ return context.Base_redirect(form_id, keep_items=dict(\n
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Item_createRelatedAffectationValidate</string> </value>
<value> <string>Item_createDeliveryLine</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
......
......@@ -92,7 +92,6 @@
<string>my_resource_title</string>
<string>my_variation_category_list</string>
<string>my_reference</string>
<string>my_serial_number</string>
<string>my_current_owner</string>
<string>my_current_site</string>
<string>my_expiration_date</string>
......@@ -104,10 +103,10 @@
<key> <string>right</string> </key>
<value>
<list>
<string>my_translated_validation_state_title</string>
<string>my_quantity</string>
<string>my_quantity_unit</string>
<string>my_comment</string>
<string>my_translated_validation_state_title</string>
</list>
</value>
</item>
......
......@@ -12,7 +12,9 @@
<item>
<key> <string>delegated_list</string> </key>
<value>
<list/>
<list>
<string>editable</string>
</list>
</value>
</item>
<item>
......@@ -72,6 +74,10 @@
<key> <string>values</string> </key>
<value>
<dictionary>
<item>
<key> <string>editable</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>extra_context</string> </key>
<value>
......
......@@ -12,7 +12,9 @@
<item>
<key> <string>delegated_list</string> </key>
<value>
<list/>
<list>
<string>default</string>
</list>
</value>
</item>
<item>
......@@ -53,6 +55,12 @@
<key> <string>tales</string> </key>
<value>
<dictionary>
<item>
<key> <string>default</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>extra_context</string> </key>
<value> <string></string> </value>
......@@ -76,6 +84,10 @@
<key> <string>values</string> </key>
<value>
<dictionary>
<item>
<key> <string>default</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>extra_context</string> </key>
<value>
......@@ -96,4 +108,20 @@
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: here.Item_getResourceTitle()</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -38,7 +38,7 @@
</item>
<item>
<key> <string>action</string> </key>
<value> <string>Item_createRelatedAffectationValidate</string> </value>
<value> <string>Item_createDeliveryLine</string> </value>
</item>
<item>
<key> <string>description</string> </key>
......@@ -100,8 +100,6 @@
<value>
<list>
<string>your_title</string>
<string>your_start_date</string>
<string>your_stop_date</string>
</list>
</value>
</item>
......@@ -120,7 +118,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Item_createRelatedAffectationFormDialog</string> </value>
<value> <string>Item_viewDeliveryLineCreationDialog</string> </value>
</item>
<item>
<key> <string>method</string> </key>
......@@ -128,11 +126,11 @@
</item>
<item>
<key> <string>name</string> </key>
<value> <string>Item_createAffectationFormDialog</string> </value>
<value> <string>Item_viewDeliveryLineCreationDialog</string> </value>
</item>
<item>
<key> <string>pt</string> </key>
<value> <string>form_view_dialog</string> </value>
<value> <string>form_dialog</string> </value>
</item>
<item>
<key> <string>row_length</string> </key>
......@@ -152,7 +150,7 @@
</item>
<item>
<key> <string>update_action</string> </key>
<value> <string>Item_createRelatedAffectationFormDialog</string> </value>
<value> <string>Item_viewDeliveryLineCreationDialog</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -9,12 +9,6 @@
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
......
<?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>Script_magic</string> </key>
<value> <int>3</int> </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>from Products.ERP5Type.Document import newTempBase\n
portal = context.getPortalObject()\n
if context.getPortalType()==\'Sale Packing List Line\':\n
cell_portal_type = \'Sale Packing List Cell\'\n
elif context.getPortalType()==\'Inventory Line\':\n
cell_portal_type = \'Inventory Cell\'\n
elif context.getPortalType()==\'Internal Packing List Line\':\n
cell_portal_type = \'Internal Packing List Cell\'\n
result = [x.getObject() for x in context.portal_catalog(portal_type=\'Item\')]\n
result_list = []\n
new_list = filter(\n
lambda x :(x.Item_getResourceTitle()==context.getResourceTitle()),\n
result)\n
splc_list= context.contentValues(portal_type=cell_portal_type)\n
for splc in splc_list:\n
item_list = filter(\n
lambda x :(x.Item_getVariationOnMovement()==splc.getVariationCategoryList()),\n
new_list)\n
result_list.extend(item_list)\n
len_res_list = len(result_list)\n
\n
\n
result = []\n
\n
return result_list\n
for item in result_list:\n
variation_list = item.Item_getVariationOnMovement()\n
if variation_list !=[]:\n
obj = newTempBase(portal,id="tmp_item_%s" % item.getId(), uid="new_item_%s" % item.getId())\n
obj.edit(title=item.Item_getResourceTitle(),\n
reference=item.getReference(),\n
size=variation_list[1],\n
quantity=item.getQuantity(),\n
quality_grade=variation_list[0],\n
variation_category_list =variation_list)\n
result.append(obj)\n
\n
return result\n
</string> </value>
</item>
<item>
<key> <string>_code</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>Products.ERP5Type.Document</string>
<string>newTempBase</string>
<string>_getattr_</string>
<string>context</string>
<string>portal</string>
<string>cell_portal_type</string>
<string>append</string>
<string>$append0</string>
<string>_getiter_</string>
<string>x</string>
<string>result</string>
<string>result_list</string>
<string>filter</string>
<string>new_list</string>
<string>splc_list</string>
<string>splc</string>
<string>item_list</string>
<string>len</string>
<string>len_res_list</string>
<string>item</string>
<string>variation_list</string>
<string>obj</string>
<string>_getitem_</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>SalePackingList_getSelectFastInputItemList</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?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>Script_magic</string> </key>
<value> <int>3</int> </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>item_list = []\n
request = context.REQUEST\n
total_quantity = 0.0 \n
new_item_list =[]\n
type = request.get("field_my_type")\n
if context.getPortalType()==\'Sale Packing List Line\':\n
cell_portal_type = \'Sale Packing List Cell\'\n
elif context.getPortalType()==\'Inventory Line\':\n
cell_portal_type = \'Inventory Cell\'\n
elif context.getPortalType()==\'Internal Packing List Line\':\n
cell_portal_type = \'Internal Packing List Cell\'\n
base_id = \'movement\'\n
splc_list= context.contentValues(portal_type=cell_portal_type)\n
for line in kw.get(\'listbox\'): \n
if line[\'selection_check\']:\n
item = context.portal_catalog.getResultValue(\n
relative_url=line["listbox_key"].split("erp5/")[-1])\n
item_list.append(item)\n
\n
for cell in splc_list:\n
for item in item_list:\n
if item.Item_getVariationOnMovement()==cell.getVariationCategoryList():\n
new_item_list=[]\n
new_item_list.append(item) \n
cell.setAggregateValueList(cell.getAggregateValueList()+new_item_list)\n
item.setQuantity(item.getQuantity()-cell.getQuantity())\n
\n
\n
context.REQUEST.response.redirect(\'%s/view?portal_status_message=%s\' % (context.absolute_url(), \'Items aggregated.\'.replace(\' \', \'%20\')))\n
</string> </value>
</item>
<item>
<key> <string>_code</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>item_list</string>
<string>_getattr_</string>
<string>context</string>
<string>request</string>
<string>total_quantity</string>
<string>new_item_list</string>
<string>type</string>
<string>cell_portal_type</string>
<string>base_id</string>
<string>splc_list</string>
<string>_getiter_</string>
<string>line</string>
<string>_getitem_</string>
<string>item</string>
<string>cell</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>SalePackingList_setItemForSelectFastInputList</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?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>Script_magic</string> </key>
<value> <int>3</int> </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>"""\n
This script just returns what the user entered in\n
the fast input form.\n
"""\n
request= context.REQUEST\n
item_list=[]\n
portal = context.getPortalObject()\n
Base_translateString = portal.Base_translateString\n
if context.getPortalType()==\'Sale Packing List Line\':\n
cell_portal_type = \'Sale Packing List Cell\'\n
elif context.getPortalType()==\'Inventory Line\':\n
cell_portal_type = \'Inventory Cell\'\n
elif context.getPortalType()==\'Internal Packing List Line\':\n
cell_portal_type = \'Internal Packing List Cell\'\n
context.Base_updateDialogForm(listbox=listbox)\n
\n
for line in listbox: \n
if line["selection_check"]==1:\n
item = context.portal_catalog.getResultValue(\n
relative_url=line["listbox_key"].split("erp5/")[-1])\n
item_list.append(item)\n
variation_dict = {} \n
for item in item_list: \n
variation_list = item.Item_getVariationOnDefinedOnItem()\n
if variation_list not in variation_dict:\n
variation_dict[variation_list] = 0.0 \n
variation_dict[variation_list] = variation_dict[variation_list] + item.getQuantity()\n
\n
splc_list= context.contentValues(portal_type=cell_portal_type)\n
variation_cell_dict = {}\n
for splc in splc_list:\n
variation_cell_list = \',\'.join([x[0] for x in splc.getVariationCategoryItemList()])\n
variation_cell_dict[variation_cell_list]= splc.getQuantity()\n
final_variation_dict={}\n
for key in variation_cell_dict:\n
final_variation_dict[key] = "%s/%s"%(variation_cell_dict[key],variation_dict[key])\n
\n
\n
\n
request.set(\'portal_status_message\',\n
Base_translateString(\n
\'Quantity Defined On Packing List %s\' %(final_variation_dict)))\n
\n
return context.SalePackingList_viewSelectItemFastInputDialog(**kw)\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>listbox=[],**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>1</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>listbox</string>
<string>kw</string>
<string>_getattr_</string>
<string>context</string>
<string>request</string>
<string>item_list</string>
<string>portal</string>
<string>Base_translateString</string>
<string>cell_portal_type</string>
<string>_getiter_</string>
<string>line</string>
<string>_getitem_</string>
<string>item</string>
<string>variation_dict</string>
<string>variation_list</string>
<string>_write_</string>
<string>splc_list</string>
<string>variation_cell_dict</string>
<string>splc</string>
<string>append</string>
<string>$append0</string>
<string>x</string>
<string>variation_cell_list</string>
<string>final_variation_dict</string>
<string>key</string>
<string>_apply_</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<tuple>
<list/>
</tuple>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>SalePackingList_updateSelectItemFastInputDialog</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ERP5Form" module="Products.ERP5Form.Form"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<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/>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>action</string> </key>
<value> <string>SalePackingList_setItemForSelectFastInputList</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>edit_order</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>encoding</string> </key>
<value> <string>UTF-8</string> </value>
</item>
<item>
<key> <string>enctype</string> </key>
<value> <string>application/x-www-form-urlencoded</string> </value>
</item>
<item>
<key> <string>group_list</string> </key>
<value>
<list>
<string>left</string>
<string>right</string>
<string>center</string>
<string>bottom</string>
<string>hidden</string>
</list>
</value>
</item>
<item>
<key> <string>groups</string> </key>
<value>
<dictionary>
<item>
<key> <string>bottom</string> </key>
<value>
<list>
<string>listbox</string>
</list>
</value>
</item>
<item>
<key> <string>center</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>hidden</string> </key>
<value>
<list>
<string>listbox_quantity</string>
<string>listbox_reference</string>
<string>listbox_title</string>
<string>listbox_selection_check</string>
<string>listbox_variation_category_list</string>
</list>
</value>
</item>
<item>
<key> <string>left</string> </key>
<value>
<list>
<string>my_resource_title</string>
<string>my_total_quantity</string>
<string>my_quantity_unit</string>
<string>my_type</string>
</list>
</value>
</item>
<item>
<key> <string>right</string> </key>
<value>
<list/>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>SalePackingList_viewSelectItemFastInputDialog</string> </value>
</item>
<item>
<key> <string>method</string> </key>
<value> <string>POST</string> </value>
</item>
<item>
<key> <string>name</string> </key>
<value> <string>SalePackingList_viewSelectItemFastInputDialog</string> </value>
</item>
<item>
<key> <string>pt</string> </key>
<value> <string>form_dialog</string> </value>
</item>
<item>
<key> <string>row_length</string> </key>
<value> <int>4</int> </value>
</item>
<item>
<key> <string>stored_encoding</string> </key>
<value> <string>UTF-8</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Select Items</string> </value>
</item>
<item>
<key> <string>unicode_mode</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>update_action</string> </key>
<value> <string>SalePackingList_updateSelectItemFastInputDialog</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>delegated_list</string> </key>
<value>
<list>
<string>title</string>
<string>columns</string>
<string>all_columns</string>
<string>search_columns</string>
<string>sort</string>
<string>list_method</string>
<string>selection_name</string>
<string>default_params</string>
<string>editable_columns</string>
<string>enabled</string>
</list>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>listbox</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
<value>
<dictionary>
<item>
<key> <string>external_validator_failed</string> </key>
<value> <string>The input failed the external validator.</string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>overrides</string> </key>
<value>
<dictionary>
<item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>tales</string> </key>
<value>
<dictionary>
<item>
<key> <string>all_columns</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>columns</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>default_params</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>editable_columns</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>enabled</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>list_method</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>search_columns</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>selection_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>sort</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>values</string> </key>
<value>
<dictionary>
<item>
<key> <string>all_columns</string> </key>
<value>
<list>
<tuple>
<string>title</string>
<string>Title</string>
</tuple>
<tuple>
<string>reference</string>
<string>Reference</string>
</tuple>
<tuple>
<string>quantity</string>
<string>Quantity</string>
</tuple>
</list>
</value>
</item>
<item>
<key> <string>columns</string> </key>
<value>
<list>
<tuple>
<string>selection_check</string>
<string>Select</string>
</tuple>
<tuple>
<string>title</string>
<string>Lot Title</string>
</tuple>
<tuple>
<string>reference</string>
<string>Lot Reference</string>
</tuple>
<tuple>
<string>quantity</string>
<string>Quantity</string>
</tuple>
<tuple>
<string>Item_getVariationOnDefinedOnItem</string>
<string>Variation</string>
</tuple>
</list>
</value>
</item>
<item>
<key> <string>default_params</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>editable_columns</string> </key>
<value>
<list>
<tuple>
<string>selection_check</string>
<string>Select</string>
</tuple>
<tuple>
<string>Item_getVariationOnDefinedOnItem</string>
<string>Variation</string>
</tuple>
</list>
</value>
</item>
<item>
<key> <string>enabled</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string>my_order_sub_lines_listbox</string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string>OrderLine_viewFieldLibrary</string> </value>
</item>
<item>
<key> <string>list_method</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>search_columns</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>selection_name</string> </key>
<value> <string>item_fast_input_selection</string> </value>
</item>
<item>
<key> <string>sort</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Select Items</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<global name="Method" module="Products.Formulator.MethodField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>method_name</string> </key>
<value> <string>SalePackingList_getSelectFastInputItemList</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -13,14 +13,13 @@
<key> <string>delegated_list</string> </key>
<value>
<list>
<string>title</string>
<string>editable</string>
<string>enabled</string>
</list>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>my_serial_number</string> </value>
<value> <string>listbox_quantity</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
......@@ -38,15 +37,15 @@
<value>
<dictionary>
<item>
<key> <string>field_id</string> </key>
<key> <string>extra_context</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>target</string> </key>
<key> <string>form_id</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
......@@ -56,6 +55,14 @@
<key> <string>tales</string> </key>
<value>
<dictionary>
<item>
<key> <string>enabled</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>extra_context</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
......@@ -76,24 +83,22 @@
<value>
<dictionary>
<item>
<key> <string>editable</string> </key>
<key> <string>enabled</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string>my_string_field</string> </value>
<key> <string>extra_context</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string>Base_viewFieldLibrary</string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value>
<key> <string>field_id</string> </key>
<value> <string>my_quantity</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Serial Number</string> </value>
<key> <string>form_id</string> </key>
<value> <string>DeliveryCell_viewFieldLibrary</string> </value>
</item>
</dictionary>
</value>
......
......@@ -15,11 +15,11 @@
</item>
<item>
<key> <string>actbox_name</string> </key>
<value> <string>Delete</string> </value>
<value> <string></string> </value>
</item>
<item>
<key> <string>actbox_url</string> </key>
<value> <string>%(content_url)s/BaseWorkflow_viewWorkflowActionDialog?workflow_action=delete_action</string> </value>
<value> <string></string> </value>
</item>
<item>
<key> <string>after_script_name</string> </key>
......
71
\ No newline at end of file
74
\ 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