Commit c94bd5c6 authored by Kevin Deldycke's avatar Kevin Deldycke

Use section_portal_type_list to break acquisition of 'group' property from Person to Organisation.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6377 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent aa2d593f
...@@ -95,6 +95,7 @@ params = {\n ...@@ -95,6 +95,7 @@ params = {\n
\'section_category\' : transaction_section_category,\n \'section_category\' : transaction_section_category,\n
\'simulation_state\' : transaction_simulation_state,\n \'simulation_state\' : transaction_simulation_state,\n
\'report_depth\' : 5,\n \'report_depth\' : 5,\n
\'section_portal_type_list\': [\'Organisation\']\n
}\n }\n
\n \n
params[\'hide_grouping\'] = request[\'omit_grouped_references\']\n params[\'hide_grouping\'] = request[\'omit_grouped_references\']\n
......
...@@ -76,6 +76,7 @@ get_inventory_kw[\'section_category\'] = selection_params.get(\'section_category ...@@ -76,6 +76,7 @@ get_inventory_kw[\'section_category\'] = selection_params.get(\'section_category
get_inventory_kw[\'simulation_state\'] = selection_params.get(\'transaction_simulation_state\')\n get_inventory_kw[\'simulation_state\'] = selection_params.get(\'transaction_simulation_state\')\n
get_inventory_kw[\'node_category\'] = selection_params.get(\'gap_root\')\n get_inventory_kw[\'node_category\'] = selection_params.get(\'gap_root\')\n
get_inventory_kw[\'omit_simulation\'] = 1\n get_inventory_kw[\'omit_simulation\'] = 1\n
get_inventory_kw[\'section_portal_type_list\'] = [\'Organisation\']\n
\n \n
no_start_date = DateTime(1970, 1, 1)\n no_start_date = DateTime(1970, 1, 1)\n
\n \n
...@@ -86,7 +87,7 @@ getInventory = portal.portal_simulation.getInventoryAssetPrice\n ...@@ -86,7 +87,7 @@ getInventory = portal.portal_simulation.getInventoryAssetPrice\n
list_item = newTempBase(portal, \'xxx\')\n list_item = newTempBase(portal, \'xxx\')\n
list_item.setUid(\'new_000\')\n list_item.setUid(\'new_000\')\n
list_item.edit(** {\n list_item.edit(** {\n
# FIXME: here we do not want to sum all movement < 0, but sum the balances \n # FIXME: here we do not want to sum all movement < 0, but sum the balances\n
# of all nodes whose which have a < 0 balance...\n # of all nodes whose which have a < 0 balance...\n
\'total_opening_debit_balance\' : getInventory(\n \'total_opening_debit_balance\' : getInventory(\n
at_date = selection_params.get(\'from_date\', no_start_date),\n at_date = selection_params.get(\'from_date\', no_start_date),\n
...@@ -97,7 +98,7 @@ list_item.edit(** {\n ...@@ -97,7 +98,7 @@ list_item.edit(** {\n
at_date = selection_params.get(\'from_date\', no_start_date),\n at_date = selection_params.get(\'from_date\', no_start_date),\n
omit_input = 1,\n omit_input = 1,\n
**get_inventory_kw) or 0,\n **get_inventory_kw) or 0,\n
\n \n
\'total_closing_debit_balance\' : getInventory(\n \'total_closing_debit_balance\' : getInventory(\n
at_date = selection_params.get(\'at_date\'),\n at_date = selection_params.get(\'at_date\'),\n
omit_output = 1,\n omit_output = 1,\n
......
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