Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Jérome Perrin
erp5
Commits
837b2070
Commit
837b2070
authored
Feb 07, 2019
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5: introduce a new payment_request type list
parent
18004c62
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
product/ERP5/ERP5Site.py
product/ERP5/ERP5Site.py
+8
-0
product/ERP5Type/ERP5Type.py
product/ERP5Type/ERP5Type.py
+2
-1
No files found.
product/ERP5/ERP5Site.py
View file @
837b2070
...
...
@@ -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
):
...
...
product/ERP5Type/ERP5Type.py
View file @
837b2070
...
...
@@ -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'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment