From c94bd5c69759aa88b5f185fed677325797efb2db Mon Sep 17 00:00:00 2001 From: Kevin Deldycke <kevin@nexedi.com> Date: Thu, 30 Mar 2006 23:45:13 +0000 Subject: [PATCH] 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 --- .../AccountModule_getOtherPartiesReportSectionList.xml | 1 + .../erp5_accounting/AccountModule_getTrialBalanceSummary.xml | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getOtherPartiesReportSectionList.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getOtherPartiesReportSectionList.xml index f134703c75..e6741eeeee 100644 --- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getOtherPartiesReportSectionList.xml +++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getOtherPartiesReportSectionList.xml @@ -95,6 +95,7 @@ params = {\n \'section_category\' : transaction_section_category,\n \'simulation_state\' : transaction_simulation_state,\n \'report_depth\' : 5,\n + \'section_portal_type_list\': [\'Organisation\']\n }\n \n params[\'hide_grouping\'] = request[\'omit_grouped_references\']\n diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getTrialBalanceSummary.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getTrialBalanceSummary.xml index f608473951..fbd1f734ae 100644 --- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getTrialBalanceSummary.xml +++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getTrialBalanceSummary.xml @@ -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[\'node_category\'] = selection_params.get(\'gap_root\')\n get_inventory_kw[\'omit_simulation\'] = 1\n +get_inventory_kw[\'section_portal_type_list\'] = [\'Organisation\']\n \n no_start_date = DateTime(1970, 1, 1)\n \n @@ -86,7 +87,7 @@ getInventory = portal.portal_simulation.getInventoryAssetPrice\n list_item = newTempBase(portal, \'xxx\')\n list_item.setUid(\'new_000\')\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 \'total_opening_debit_balance\' : getInventory(\n at_date = selection_params.get(\'from_date\', no_start_date),\n @@ -97,7 +98,7 @@ list_item.edit(** {\n at_date = selection_params.get(\'from_date\', no_start_date),\n omit_input = 1,\n **get_inventory_kw) or 0,\n - \n +\n \'total_closing_debit_balance\' : getInventory(\n at_date = selection_params.get(\'at_date\'),\n omit_output = 1,\n -- 2.30.9