Commit 00adfaad authored by Jérome Perrin's avatar Jérome Perrin Committed by Cédric Le Ninivin

ERP5: introduce a new payment_request type list

parent c2352d08
......@@ -1657,6 +1657,14 @@ class ERP5Site(FolderMixIn, CMFSite, CacheCookieMixin):
return self._getPortalGroupedTypeList('device_configuration') or\
self._getPortalConfiguration('portal_device_configuration_type_list')
security.declareProtected(Permissions.AccessContentsInformation,
'getPortalPaymentRequestTypeList')
def getPortalPaymentRequestTypeList(self):
"""
Returns Payment Request types.
"""
return self._getPortalGroupedTypeList('payment_request')
security.declareProtected(Permissions.AccessContentsInformation,
'getDefaultModuleId')
def getDefaultModuleId(self, portal_type, default=MARKER, only_visible=False):
......
......@@ -285,6 +285,7 @@ class ERP5TypeInformation(XMLObject,
# CRM
'event', 'ticket',
'interface_post', # object used to track exchanges in/out of ERP5
'payment_request',
# DMS
'document', 'web_document', 'file_document', 'embedded_document',
'recent_document', 'my_document', 'template_document',
......
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