Commit e8c9a7a9 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Added a group for each type of amount_generator (ex. line, cell, parent)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33204 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c5454532
...@@ -1095,6 +1095,30 @@ class ERP5Site(FolderMixIn, CMFSite): ...@@ -1095,6 +1095,30 @@ class ERP5Site(FolderMixIn, CMFSite):
""" """
return self._getPortalGroupedTypeList('target_solver') return self._getPortalGroupedTypeList('target_solver')
security.declareProtected(Permissions.AccessContentsInformation,
'getPortalAmountGeneratorTypeList')
def getPortalAmountGeneratorTypeList(self):
"""
Return amount generator types.
"""
return self._getPortalGroupedTypeList('amount_generator')
security.declareProtected(Permissions.AccessContentsInformation,
'getPortalAmountGeneratorLineTypeList')
def getPortalAmountGeneratorLineTypeList(self):
"""
Return amount generator line types.
"""
return self._getPortalGroupedTypeList('amount_generator_line')
security.declareProtected(Permissions.AccessContentsInformation,
'getPortalAmountGeneratorCellTypeList')
def getPortalAmountGeneratorCellTypeList(self):
"""
Return amount generator cell types.
"""
return self._getPortalGroupedTypeList('amount_generator_cell')
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
'getPortalCalendarPeriodTypeList') 'getPortalCalendarPeriodTypeList')
def getPortalCalendarPeriodTypeList(self): def getPortalCalendarPeriodTypeList(self):
......
...@@ -257,7 +257,8 @@ class ERP5TypeInformation(XMLObject, ...@@ -257,7 +257,8 @@ class ERP5TypeInformation(XMLObject,
'recent_document', 'my_document', 'template_document', 'recent_document', 'my_document', 'template_document',
'crawler_index', 'crawler_index',
# Solvers and simulation # Solvers and simulation
'divergence_tester', 'target_solver', 'divergence_tester', 'target_solver',
'amount_generator', 'amount_generator_line', 'amount_generator_cell',
# MRP # MRP
'calendar_period', 'calendar_period',
# Project # Project
......
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