From a77724993160a3dbbd0b9a6a8298f06d5ff1e82e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Fri, 8 Sep 2006 09:19:06 +0000
Subject: [PATCH] fix stat method on account module when the list is filtered.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9759 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../AccountModule_getAccountingTransactionCount.xml           | 4 ++--
 bt5/erp5_accounting/bt/revision                               | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getAccountingTransactionCount.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getAccountingTransactionCount.xml
index 36056d05e9..a2e0960c62 100644
--- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getAccountingTransactionCount.xml
+++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getAccountingTransactionCount.xml
@@ -83,9 +83,9 @@ if kw.get(\'stat\'):\n
   if selection_params.get(\'closed_summary\'):\n
     kwd[\'closed_summary\'] = selection_params[\'closed_summary\']\n
   if selection.isInvertMode():\n
-    kwd[\'selection_uids\'] = selection.getInvertModeUidList()\n
+    kwd[\'stock.node_uid\'] = selection.getInvertModeUidList()\n
   # is list filtered ?\n
-  if \'title\' in selection_params or \\\n
+  elif \'title\' in selection_params or \\\n
      \'preferred_gap_id\' in selection_params or\\\n
      \'transalated_validation_state_title\' in selection_params:\n
     # if yes, apply the same filter here\n
diff --git a/bt5/erp5_accounting/bt/revision b/bt5/erp5_accounting/bt/revision
index 410b14d2ce..978b4e8e51 100644
--- a/bt5/erp5_accounting/bt/revision
+++ b/bt5/erp5_accounting/bt/revision
@@ -1 +1 @@
-25
\ No newline at end of file
+26
\ No newline at end of file
-- 
2.30.9