Commit 94a5d7a2 authored by Jérome Perrin's avatar Jérome Perrin

add default gap root portal method, for multi-country accounting


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3302 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 863958b6
...@@ -157,3 +157,7 @@ portal_tab_base_category_list = ('morphologie', ) ...@@ -157,3 +157,7 @@ portal_tab_base_category_list = ('morphologie', )
portal_criterion_base_category_list = ('source','destination','resource', portal_criterion_base_category_list = ('source','destination','resource',
'destination_section','source_section','group') 'destination_section','source_section','group')
portal_criterion_property_list = ('start_date','stop_date') portal_criterion_property_list = ('start_date','stop_date')
# Accounting defaults values
portal_default_gap_root = 'gap/france/pcg'
...@@ -494,6 +494,11 @@ class ERP5Site ( CMFSite, FolderMixIn ): ...@@ -494,6 +494,11 @@ class ERP5Site ( CMFSite, FolderMixIn ):
""" """
return self._getPortalConfiguration('portal_tab_base_category_list') return self._getPortalConfiguration('portal_tab_base_category_list')
def getPortalDefaultGapRoot(self):
"""
Return the Accounting Plan to use by default (return the root node)
"""
return self._getPortalConfiguration('portal_default_gap_root')
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