Commit 0adcff3e authored by Mame Coumba Sall's avatar Mame Coumba Sall

2009-05-26 mame

*add column show_history
*modified script that shows quantity_unit

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27196 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d67203f5
...@@ -70,8 +70,9 @@ context.setVariationCategoryList([])\n ...@@ -70,8 +70,9 @@ context.setVariationCategoryList([])\n
base_id = \'movement\'\n base_id = \'movement\'\n
for line in kw.get(\'listbox\'):\n for line in kw.get(\'listbox\'):\n
if line.has_key(\'listbox_key\') and line[\'quantity\'] in (\'\',None):\n if line.has_key(\'listbox_key\') and line[\'quantity\'] in (\'\',None):\n
request.set(\'portal_status_message\', \n msg = translateString(\'Please Define Quantity for Item Defined On Line %s\'%line[\'listbox_key\'], mapping = kw)\n
translateString(\'Please Define Quantity for Item Defined On Line %s\'%line[\'listbox_key\']))\n return context.Base_redirect(form_id, keep_items=dict(\n
portal_status_message=msg))\n
if line.has_key(\'listbox_key\') and (line[\'title\'] or line[\'reference\'] not in (\'\', None)):\n if line.has_key(\'listbox_key\') and (line[\'title\'] or line[\'reference\'] not in (\'\', None)):\n
module = context.getDefaultModule(type)\n module = context.getDefaultModule(type)\n
item = module.newContent(portal_type=type,\n item = module.newContent(portal_type=type,\n
...@@ -162,6 +163,8 @@ return context.Base_redirect(form_id, keep_items=dict(\n ...@@ -162,6 +163,8 @@ return context.Base_redirect(form_id, keep_items=dict(\n
<string>line</string> <string>line</string>
<string>_getitem_</string> <string>_getitem_</string>
<string>None</string> <string>None</string>
<string>msg</string>
<string>dict</string>
<string>module</string> <string>module</string>
<string>item</string> <string>item</string>
<string>filter</string> <string>filter</string>
...@@ -172,7 +175,6 @@ return context.Base_redirect(form_id, keep_items=dict(\n ...@@ -172,7 +175,6 @@ return context.Base_redirect(form_id, keep_items=dict(\n
<string>_apply_</string> <string>_apply_</string>
<string>cell</string> <string>cell</string>
<string>_inplacevar_</string> <string>_inplacevar_</string>
<string>dict</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -368,6 +368,10 @@ ...@@ -368,6 +368,10 @@
<string>translated_validation_state_title</string> <string>translated_validation_state_title</string>
<string>Simulation State</string> <string>Simulation State</string>
</tuple> </tuple>
<tuple>
<string>history</string>
<string>Show History</string>
</tuple>
</list> </list>
</value> </value>
</item> </item>
...@@ -420,6 +424,10 @@ ...@@ -420,6 +424,10 @@
<string>variation_category_item_list</string> <string>variation_category_item_list</string>
<string>Variation</string> <string>Variation</string>
</tuple> </tuple>
<tuple>
<string>history</string>
<string>Show History</string>
</tuple>
</list> </list>
</value> </value>
</item> </item>
...@@ -481,6 +489,10 @@ ...@@ -481,6 +489,10 @@
<key> <string>report_tree</string> </key> <key> <string>report_tree</string> </key>
<value> <int>0</int> </value> <value> <int>0</int> </value>
</item> </item>
<item>
<key> <string>row_css_method</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>search</string> </key> <key> <string>search</string> </key>
<value> <int>0</int> </value> <value> <int>0</int> </value>
...@@ -534,7 +546,12 @@ ...@@ -534,7 +546,12 @@
<item> <item>
<key> <string>url_columns</string> </key> <key> <string>url_columns</string> </key>
<value> <value>
<list/> <list>
<tuple>
<string>history</string>
<string>Item_getTrackingFormUrl</string>
</tuple>
</list>
</value> </value>
</item> </item>
</dictionary> </dictionary>
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
result = context.Item_getResourceValue() and context.Item_getResourceValue().getQuantityUnitList() and [(\'\', \'\')] + [(x.getTranslatedLogicalPath(), x.getCategoryRelativeUrl(base=0)) for x in context.Item_getResourceValue().getQuantityUnitValueList()] or [(\'\', \'\')]\n result = context.Item_getResourceValue() and context.Item_getResourceValue().getQuantityUnitList() and [(\'\', \'\')] + [(x.getTranslatedLogicalPath(), x.getCategoryRelativeUrl(base=0)) for x in context.Item_getResourceValue().getQuantityUnitValueList()] or [(\'\', \'\')]\n
\n \n
else:\n else:\n
result = [(x.getTranslatedLogicalPath(), x.getCategoryRelativeUrl(base=0)) for x in context.AggregateValue().getQuantityUnitValueList()] or [(\'\', \'\')]\n result = [(x.getTranslatedLogicalPath(), x.getCategoryRelativeUrl(base=0)) for x in context.getAggregateRelatedValue().getQuantityUnitValueList()] or [(\'\', \'\')]\n
return result\n return result\n
</string> </value> </string> </value>
</item> </item>
......
128 129
\ 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