Commit b64592e0 authored by Jérome Perrin's avatar Jérome Perrin

ERP5: introduce a new payment_request type list

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