Commit 383357a1 authored by Jérome Perrin's avatar Jérome Perrin

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
parent 9c6afa22
......@@ -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',
......
......@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment