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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Sebastien Robin
erp5
Commits
e813b810
Commit
e813b810
authored
Jun 09, 2020
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5: add a portal type group for post
parent
8b485cf9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
product/ERP5/ERP5Site.py
product/ERP5/ERP5Site.py
+8
-0
product/ERP5Type/ERP5Type.py
product/ERP5Type/ERP5Type.py
+1
-0
No files found.
product/ERP5/ERP5Site.py
View file @
e813b810
...
@@ -1279,6 +1279,14 @@ class ERP5Site(ResponseHeaderGenerator, FolderMixIn, CMFSite, CacheCookieMixin):
...
@@ -1279,6 +1279,14 @@ class ERP5Site(ResponseHeaderGenerator, FolderMixIn, CMFSite, CacheCookieMixin):
"""
"""
return
self
.
_getPortalGroupedTypeList
(
'domain'
)
return
self
.
_getPortalGroupedTypeList
(
'domain'
)
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'getPortalPostTypeList'
)
def
getPortalPostTypeList
(
self
):
"""
Return post types.
"""
return
self
.
_getPortalGroupedTypeList
(
'post'
)
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'getPortalCurrentInventoryStateList'
)
'getPortalCurrentInventoryStateList'
)
def
getPortalCurrentInventoryStateList
(
self
):
def
getPortalCurrentInventoryStateList
(
self
):
...
...
product/ERP5Type/ERP5Type.py
View file @
e813b810
...
@@ -290,6 +290,7 @@ class ERP5TypeInformation(XMLObject,
...
@@ -290,6 +290,7 @@ class ERP5TypeInformation(XMLObject,
'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'
,
'crawler_index'
,
'crawler_index'
,
'post'
,
# Solvers and simulation
# Solvers and simulation
'divergence_tester'
,
'target_solver'
,
'delivery_solver'
,
'divergence_tester'
,
'target_solver'
,
'delivery_solver'
,
'amount_generator'
,
'amount_generator_line'
,
'amount_generator_cell'
,
'amount_generator'
,
'amount_generator_line'
,
'amount_generator_cell'
,
...
...
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