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

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>
......
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