Commit 68ed21c1 authored by Jérome Perrin's avatar Jérome Perrin

don't show variation_text but variation title

simplify Resource_getMovementHistoryStat

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22866 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8df58eb8
...@@ -68,8 +68,7 @@ ...@@ -68,8 +68,7 @@
<value> <string>from Products.PythonScripts.standard import Object\n <value> <string>from Products.PythonScripts.standard import Object\n
\n \n
return [Object(uid="new_",\n return [Object(uid="new_",\n
total_quantity=context.getMovementHistoryStat(\n total_quantity=context.getMovementHistoryStat(**kw)[0][\'total_quantity\'],) ]\n
selection_domain=kw.get(\'selection_domain\', None))[0][\'total_quantity\'],) ]\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -116,9 +115,9 @@ return [Object(uid="new_",\n ...@@ -116,9 +115,9 @@ return [Object(uid="new_",\n
<string>Products.PythonScripts.standard</string> <string>Products.PythonScripts.standard</string>
<string>Object</string> <string>Object</string>
<string>_getitem_</string> <string>_getitem_</string>
<string>_apply_</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>None</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -99,6 +99,7 @@ ...@@ -99,6 +99,7 @@
<string>listbox_inventory</string> <string>listbox_inventory</string>
<string>listbox_getCurrentInventory</string> <string>listbox_getCurrentInventory</string>
<string>listbox_getAvailableInventory</string> <string>listbox_getAvailableInventory</string>
<string>listbox_variation_category_item_list</string>
</list> </list>
</value> </value>
</item> </item>
......
...@@ -356,7 +356,7 @@ ...@@ -356,7 +356,7 @@
<string>Site or Warehouse</string> <string>Site or Warehouse</string>
</tuple> </tuple>
<tuple> <tuple>
<string>variation_text</string> <string>variation_category_item_list</string>
<string>Variation</string> <string>Variation</string>
</tuple> </tuple>
<tuple> <tuple>
...@@ -433,6 +433,10 @@ ...@@ -433,6 +433,10 @@
<string>inventory</string> <string>inventory</string>
<string>Future</string> <string>Future</string>
</tuple> </tuple>
<tuple>
<string>variation_category_item_list</string>
<string>Variation</string>
</tuple>
</list> </list>
</value> </value>
</item> </item>
......
...@@ -98,6 +98,7 @@ ...@@ -98,6 +98,7 @@
<list> <list>
<string>listbox_total_quantity</string> <string>listbox_total_quantity</string>
<string>listbox_date</string> <string>listbox_date</string>
<string>listbox_variation_category_item_list</string>
</list> </list>
</value> </value>
</item> </item>
......
...@@ -321,7 +321,7 @@ ...@@ -321,7 +321,7 @@
<string>Owner</string> <string>Owner</string>
</tuple> </tuple>
<tuple> <tuple>
<string>variation_text</string> <string>variation_category_item_list</string>
<string>Variation</string> <string>Variation</string>
</tuple> </tuple>
<tuple> <tuple>
...@@ -392,6 +392,10 @@ ...@@ -392,6 +392,10 @@
<string>total_quantity</string> <string>total_quantity</string>
<string>Quantity</string> <string>Quantity</string>
</tuple> </tuple>
<tuple>
<string>variation_category_item_list</string>
<string>Variation</string>
</tuple>
</list> </list>
</value> </value>
</item> </item>
......
273 275
\ 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