Commit 48d7a5ef authored by Jérome Perrin's avatar Jérome Perrin

Added portal method for Accounting Movements Portal Types Names


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4053 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 84a5d5d2
...@@ -101,6 +101,16 @@ portal_order_movement_type_list = ( ...@@ -101,6 +101,16 @@ portal_order_movement_type_list = (
'Delivery Cell', 'Delivery Cell',
) # Delivery Cell is both used for orders and deliveries XXX ) # Delivery Cell is both used for orders and deliveries XXX
portal_accounting_movement_type_list = (
'Purchase Invoice Transaction Line',
'Sale Invoice Transaction Line',
'Pay Sheet Transaction Line',
'Accounting Transaction Line',
'Balance Transaction Line',
'Amortisation Transaction Line'
)
portal_delivery_movement_type_list = ( portal_delivery_movement_type_list = (
'Delivery Line', 'Delivery Line',
'Delivery Cell', 'Delivery Cell',
......
...@@ -515,6 +515,12 @@ class ERP5Site ( CMFSite, FolderMixIn ): ...@@ -515,6 +515,12 @@ class ERP5Site ( CMFSite, FolderMixIn ):
Return the Accounting Plan to use by default (return the root node) Return the Accounting Plan to use by default (return the root node)
""" """
return self._getPortalConfiguration('portal_default_gap_root') return self._getPortalConfiguration('portal_default_gap_root')
def getPortalDefaultAccountingMovementTypeList(self) :
"""
Return accounting movement type list.
"""
return self._getPortalConfiguration('portal_accounting_movement_type_list')
security.declareProtected(Permissions.AccessContentsInformation, 'getDefaultModuleId') security.declareProtected(Permissions.AccessContentsInformation, 'getDefaultModuleId')
def getDefaultModuleId(self, portal_type): def getDefaultModuleId(self, portal_type):
......
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