From 070020f2b7a255a985783fd0eddba0f1006bb45e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Wed, 4 Oct 2006 13:57:42 +0000 Subject: [PATCH] use restrictedTraverse from the portal, to have the original acquisition context. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10536 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../FiscalReportCell_doGetInventory.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/FiscalReportCell_doGetInventory.xml b/bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/FiscalReportCell_doGetInventory.xml index 40ed7b86d8..4f0e50dda3 100644 --- a/bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/FiscalReportCell_doGetInventory.xml +++ b/bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/FiscalReportCell_doGetInventory.xml @@ -107,11 +107,12 @@ params.update(kw)\n # \'net_balance\' is the sum of balance of all accounts found under the \'gap_id_list\' criterion\n net_balance = 0.0\n \n +ctool = context.getPortalObject().portal_categories\n for gap_id in gap_id_list:\n gap_path = getURL(gap_id)\n \n # Checks the node category exists\n - if context.restrictedTraverse(\'portal_categories/%s\' % gap_path, None) is not None:\n + if ctool.restrictedTraverse(gap_path, None) is not None:\n params["node_category"] = gap_path\n new_balance = 0.0\n \n -- 2.30.9