From b169dc21f6552f5627ab38dab0ea79a02370aed7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Wed, 8 Nov 2006 10:01:02 +0000
Subject: [PATCH] AccountingTransaction_isSourceView will use the Section from
 Accounting preferences, not the one from General.

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

diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_isSourceView.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_isSourceView.xml
index b96c85315e..81ee46305b 100644
--- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_isSourceView.xml
+++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_isSourceView.xml
@@ -69,7 +69,8 @@
         <item>
             <key> <string>_body</string> </key>
             <value> <string>source = context.getSourceSectionValue()\n
-section_category = context.portal_preferences.getPreferredSectionCategory()\n
+section_category = context.portal_preferences\\\n
+         .getPreferredAccountingTransactionSectionCategory()\n
 if source is not None and section_category:\n
   if source.isMemberOf(section_category):\n
     return 1\n
diff --git a/bt5/erp5_accounting/bt/revision b/bt5/erp5_accounting/bt/revision
index 3fdc173dab..d800886d9c 100644
--- a/bt5/erp5_accounting/bt/revision
+++ b/bt5/erp5_accounting/bt/revision
@@ -1 +1 @@
-122
\ No newline at end of file
+123
\ No newline at end of file
-- 
2.30.9