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
base_id = \'movement\'\n
for line in kw.get(\'listbox\'):\n
if line.has_key(\'listbox_key\') and line[\'quantity\'] in (\'\',None):\n
request.set(\'portal_status_message\', \n
translateString(\'Please Define Quantity for Item Defined On Line %s\'%line[\'listbox_key\']))\n
msg = translateString(\'Please Define Quantity for Item Defined On Line %s\'%line[\'listbox_key\'], mapping = kw)\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
module = context.getDefaultModule(type)\n
item = module.newContent(portal_type=type,\n
......@@ -162,6 +163,8 @@ return context.Base_redirect(form_id, keep_items=dict(\n
<string>line</string>
<string>_getitem_</string>
<string>None</string>
<string>msg</string>
<string>dict</string>
<string>module</string>
<string>item</string>
<string>filter</string>
......@@ -172,7 +175,6 @@ return context.Base_redirect(form_id, keep_items=dict(\n
<string>_apply_</string>
<string>cell</string>
<string>_inplacevar_</string>
<string>dict</string>
</tuple>
</value>
</item>
......
......@@ -368,6 +368,10 @@
<string>translated_validation_state_title</string>
<string>Simulation State</string>
</tuple>
<tuple>
<string>history</string>
<string>Show History</string>
</tuple>
</list>
</value>
</item>
......@@ -420,6 +424,10 @@
<string>variation_category_item_list</string>
<string>Variation</string>
</tuple>
<tuple>
<string>history</string>
<string>Show History</string>
</tuple>
</list>
</value>
</item>
......@@ -481,6 +489,10 @@
<key> <string>report_tree</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>row_css_method</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>search</string> </key>
<value> <int>0</int> </value>
......@@ -534,7 +546,12 @@
<item>
<key> <string>url_columns</string> </key>
<value>
<list/>
<list>
<tuple>
<string>history</string>
<string>Item_getTrackingFormUrl</string>
</tuple>
</list>
</value>
</item>
</dictionary>
......
......@@ -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
\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
</string> </value>
</item>
......
128
\ No newline at end of file
129
\ 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