Commit 74ee68f5 authored by Jérome Perrin's avatar Jérome Perrin

Accounting: display payment requests on profile tab

![image](/uploads/f86e89066db17979735f892c5c36a90f/image.png)


This introduces a new portal type group "payment request"

/reviewed-on nexedi/erp5!831
parents f75b7c3b 0a8ffa01
......@@ -88,6 +88,7 @@
<string>my_source_function</string>
<string>my_source_funding</string>
<string>my_source_project_title</string>
<string>my_source_payment_request_title</string>
<string>my_source_payment</string>
<string>my_payment_mode</string>
<string>my_aggregate_title_list</string>
......
......@@ -88,6 +88,7 @@
<string>my_destination_function</string>
<string>my_destination_funding</string>
<string>my_destination_project_title</string>
<string>my_destination_payment_request_title</string>
<string>my_destination_payment</string>
<string>my_payment_mode</string>
<string>my_aggregate_title_list</string>
......
......@@ -80,6 +80,7 @@
<string>my_destination_project_title</string>
<string>my_destination_reference</string>
<string>my_destination_carrier_title</string>
<string>my_destination_payment_request_title</string>
</list>
</value>
</item>
......@@ -95,6 +96,7 @@
<string>my_source_project_title</string>
<string>my_source_reference</string>
<string>my_source_carrier_title</string>
<string>my_source_payment_request_title</string>
</list>
</value>
</item>
......
......@@ -80,6 +80,7 @@
<string>my_source_project_title</string>
<string>my_source_reference</string>
<string>my_source_carrier_title</string>
<string>my_source_payment_request_title</string>
</list>
</value>
</item>
......@@ -95,6 +96,7 @@
<string>my_destination_project_title</string>
<string>my_destination_reference</string>
<string>my_destination_carrier_title</string>
<string>my_destination_payment_request_title</string>
</list>
</value>
</item>
......
......@@ -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