Commit 41c996e8 authored by Klaus Wölfel's avatar Klaus Wölfel

WOELFEL: erp5_pdm: group inventory in stock report by section

The Movement history only showed movements for owner Wölfel/WBI. We changed the dialog to additionally group the inventory by owner. Email [Woelfel-dev] Movement history of Product incomplete from Leopold Buschmann-Gräf on 2023-06-19
parent a23999b5
...@@ -3,7 +3,7 @@ portal = context.getPortalObject() ...@@ -3,7 +3,7 @@ portal = context.getPortalObject()
inventory_list_kw = { inventory_list_kw = {
'selection_domain': selection_domain, 'selection_domain': selection_domain,
'group_by_section': False, 'group_by_section': True,
'group_by_node': True, 'group_by_node': True,
'group_by_variation': True, 'group_by_variation': True,
'resource_uid': context.getUid(), 'resource_uid': context.getUid(),
...@@ -24,6 +24,7 @@ def makeResultLine(brain): ...@@ -24,6 +24,7 @@ def makeResultLine(brain):
""" """
inventory_kw = { inventory_kw = {
'node_uid': brain.node_uid, 'node_uid': brain.node_uid,
'section_uid': brain.section_uid,
'resource_uid': brain.resource_uid, 'resource_uid': brain.resource_uid,
'variation_text': brain.variation_text, 'variation_text': brain.variation_text,
} }
...@@ -43,6 +44,7 @@ def makeResultLine(brain): ...@@ -43,6 +44,7 @@ def makeResultLine(brain):
return Object( return Object(
uid='new_', uid='new_',
node_title=brain.node_title, node_title=brain.node_title,
section_title=brain.section_title,
inventory=getattr(brain, 'converted_quantity', brain.inventory), inventory=getattr(brain, 'converted_quantity', brain.inventory),
getCurrentInventory=getCurrentInventory, getCurrentInventory=getCurrentInventory,
getAvailableInventory=getAvailableInventory, getAvailableInventory=getAvailableInventory,
......
...@@ -160,6 +160,10 @@ ...@@ -160,6 +160,10 @@
<key> <string>alternate_name</string> </key> <key> <string>alternate_name</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>anchor</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>columns</string> </key> <key> <string>columns</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
...@@ -176,6 +180,10 @@ ...@@ -176,6 +180,10 @@
<key> <string>default</string> </key> <key> <string>default</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>default_display_style</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>default_params</string> </key> <key> <string>default_params</string> </key>
<value> <value>
...@@ -186,6 +194,10 @@ ...@@ -186,6 +194,10 @@
<key> <string>description</string> </key> <key> <string>description</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>display_style_list</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>domain_root_list</string> </key> <key> <string>domain_root_list</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
...@@ -214,10 +226,18 @@ ...@@ -214,10 +226,18 @@
<key> <string>global_attributes</string> </key> <key> <string>global_attributes</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>global_search_column</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>hidden</string> </key> <key> <string>hidden</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>hide_rows_on_no_search_criterion</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>lines</string> </key> <key> <string>lines</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
...@@ -234,6 +254,14 @@ ...@@ -234,6 +254,14 @@
<key> <string>meta_types</string> </key> <key> <string>meta_types</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>page_navigation_template</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>page_template</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>portal_types</string> </key> <key> <string>portal_types</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
...@@ -246,6 +274,10 @@ ...@@ -246,6 +274,10 @@
<key> <string>report_tree</string> </key> <key> <string>report_tree</string> </key>
<value> <string></string> </value> <value> <string></string> </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> <string></string> </value> <value> <string></string> </value>
...@@ -278,10 +310,18 @@ ...@@ -278,10 +310,18 @@
<key> <string>stat_method</string> </key> <key> <string>stat_method</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>style_columns</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>untranslatable_columns</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>url_columns</string> </key> <key> <string>url_columns</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
...@@ -297,10 +337,6 @@ ...@@ -297,10 +337,6 @@
<key> <string>all_columns</string> </key> <key> <string>all_columns</string> </key>
<value> <value>
<list> <list>
<tuple>
<string>section_title</string>
<string>Owner</string>
</tuple>
<tuple> <tuple>
<string>variation_text</string> <string>variation_text</string>
<string>Variation</string> <string>Variation</string>
...@@ -330,6 +366,10 @@ ...@@ -330,6 +366,10 @@
<string>node_title</string> <string>node_title</string>
<string>Warehouse</string> <string>Warehouse</string>
</tuple> </tuple>
<tuple>
<string>section_title</string>
<string>Owner</string>
</tuple>
<tuple> <tuple>
<string>variation_category_item_list</string> <string>variation_category_item_list</string>
<string>Variation</string> <string>Variation</string>
......
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