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()
inventory_list_kw = {
'selection_domain': selection_domain,
'group_by_section': False,
'group_by_section': True,
'group_by_node': True,
'group_by_variation': True,
'resource_uid': context.getUid(),
......@@ -24,6 +24,7 @@ def makeResultLine(brain):
"""
inventory_kw = {
'node_uid': brain.node_uid,
'section_uid': brain.section_uid,
'resource_uid': brain.resource_uid,
'variation_text': brain.variation_text,
}
......@@ -43,6 +44,7 @@ def makeResultLine(brain):
return Object(
uid='new_',
node_title=brain.node_title,
section_title=brain.section_title,
inventory=getattr(brain, 'converted_quantity', brain.inventory),
getCurrentInventory=getCurrentInventory,
getAvailableInventory=getAvailableInventory,
......
......@@ -160,6 +160,10 @@
<key> <string>alternate_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>anchor</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>columns</string> </key>
<value> <string></string> </value>
......@@ -176,6 +180,10 @@
<key> <string>default</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>default_display_style</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>default_params</string> </key>
<value>
......@@ -186,6 +194,10 @@
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>display_style_list</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>domain_root_list</string> </key>
<value> <string></string> </value>
......@@ -214,10 +226,18 @@
<key> <string>global_attributes</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>global_search_column</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>hidden</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>hide_rows_on_no_search_criterion</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>lines</string> </key>
<value> <string></string> </value>
......@@ -234,6 +254,14 @@
<key> <string>meta_types</string> </key>
<value> <string></string> </value>
</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>
<key> <string>portal_types</string> </key>
<value> <string></string> </value>
......@@ -246,6 +274,10 @@
<key> <string>report_tree</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>row_css_method</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>search</string> </key>
<value> <string></string> </value>
......@@ -278,10 +310,18 @@
<key> <string>stat_method</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>style_columns</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>untranslatable_columns</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>url_columns</string> </key>
<value> <string></string> </value>
......@@ -297,10 +337,6 @@
<key> <string>all_columns</string> </key>
<value>
<list>
<tuple>
<string>section_title</string>
<string>Owner</string>
</tuple>
<tuple>
<string>variation_text</string>
<string>Variation</string>
......@@ -330,6 +366,10 @@
<string>node_title</string>
<string>Warehouse</string>
</tuple>
<tuple>
<string>section_title</string>
<string>Owner</string>
</tuple>
<tuple>
<string>variation_category_item_list</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