Commit 837b2070 authored by Jérome Perrin's avatar Jérome Perrin

ERP5: introduce a new payment_request type list

parent 18004c62
......@@ -1580,6 +1580,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):
......
......@@ -282,7 +282,8 @@ class ERP5TypeInformation(XMLObject,
'invoice', 'invoice_movement', 'balance_transaction_line',
# CRM
'event', 'ticket',
# DMS
'payment_request',
# DMS
'document', 'web_document', 'file_document', 'embedded_document',
'recent_document', 'my_document', 'template_document',
'crawler_index',
......
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