From 383357a1e673bf8cf8276f32fe326241df13b306 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Wed, 21 Dec 2005 18:59:31 +0000
Subject: [PATCH] added accounting_transaction portal type group and
 getPortalAccountingTransactionTypeList

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4844 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/ERP5Defaults.py | 7 +++++++
 product/ERP5/ERP5Site.py     | 7 +++++++
 2 files changed, 14 insertions(+)

diff --git a/product/ERP5/ERP5Defaults.py b/product/ERP5/ERP5Defaults.py
index 71c4dab651..0662a6c98b 100755
--- a/product/ERP5/ERP5Defaults.py
+++ b/product/ERP5/ERP5Defaults.py
@@ -103,6 +103,13 @@ portal_order_movement_type_list = (
                       'Delivery Cell',
                        )  # Delivery Cell is both used for orders and deliveries XXX
 
+portal_accounting_transaction_type_list = (
+                      'Accounting Transaction',
+                      'Sale Invoice Transaction',
+                      'Purchase Invoice Transaction',
+                      'Payment Transaction',
+                      'Pay Sheet Transaction',
+                      'Amortisation Transaction')
 
 portal_accounting_movement_type_list = (
                       'Purchase Invoice Transaction Line',
diff --git a/product/ERP5/ERP5Site.py b/product/ERP5/ERP5Site.py
index 1eb86d501b..d7259d5fef 100755
--- a/product/ERP5/ERP5Site.py
+++ b/product/ERP5/ERP5Site.py
@@ -560,6 +560,13 @@ class ERP5Site ( CMFSite, FolderMixIn ):
       """
       return self._getPortalGroupedTypeList('accounting_movement') or self._getPortalConfiguration('portal_accounting_movement_type_list')
 
+    def getPortalAccountingTransactionTypeList(self) :
+      """
+        Return accounting transaction movement type list.
+      """
+      return self._getPortalGroupedTypeList('accounting_transaction') or \
+          self._getPortalConfiguration('portal_accounting_transaction_type_list')
+          
     def getPortalAssignmentBaseCategoryList(self):
       """
         Return List of category values to generate security groups.
-- 
2.30.9