Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hamza
erp5-Boxiang
Commits
e7024ea4
Commit
e7024ea4
authored
Aug 11, 2016
by
Klaus Wölfel
Committed by
Tatuya Kamada
Apr 20, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add type groups for wendelin
parent
a588746c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
0 deletions
+39
-0
product/ERP5/ERP5Defaults.py
product/ERP5/ERP5Defaults.py
+8
-0
product/ERP5/ERP5Site.py
product/ERP5/ERP5Site.py
+27
-0
product/ERP5Type/ERP5Type.py
product/ERP5Type/ERP5Type.py
+4
-0
No files found.
product/ERP5/ERP5Defaults.py
View file @
e7024ea4
...
...
@@ -195,6 +195,14 @@ portal_supply_path_type_list = ('Supply Line','Supply Cell')
portal_business_process_type_list
=
(
'Business Process'
,)
portal_business_link_type_list
=
(
'Business Link'
,)
portal_data_descriptor_type_list
=
()
portal_device_type_list
=
(
'Data Acquisition Unit'
,
'Data Aggregation Unit'
'Sensor'
)
portal_device_configuration_type_list
=
()
# This transaction lines are special because destination must be None.
portal_balance_transaction_line_type_list
=
(
'Balance Transaction Line'
,)
...
...
product/ERP5/ERP5Site.py
View file @
e7024ea4
...
...
@@ -1544,6 +1544,33 @@ class ERP5Site(FolderMixIn, CMFSite, CacheCookieMixin):
"""
return
self
.
_getPortalGroupedTypeList
(
'login'
)
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'getPortalDataDescriptorTypeList'
)
def
getPortalDataDescriptorTypeList
(
self
):
"""
Returns Data Descriptor types.
"""
return
self
.
_getPortalGroupedTypeList
(
'data_descriptor'
)
or
\
self
.
_getPortalConfiguration
(
'portal_data_descriptor_type_list'
)
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'getPortalDeviceTypeList'
)
def
getPortalDeviceTypeList
(
self
):
"""
Returns Device types.
"""
return
self
.
_getPortalGroupedTypeList
(
'device'
)
or
\
self
.
_getPortalConfiguration
(
'portal_device_type_list'
)
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'getPortalDeviceConfigurationTypeList'
)
def
getPortalDeviceConfigurationTypeList
(
self
):
"""
Returns Device Configuration types.
"""
return
self
.
_getPortalGroupedTypeList
(
'device_configuration'
)
or
\
self
.
_getPortalConfiguration
(
'portal_device_configuation_type_list'
)
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'getDefaultModuleId'
)
def
getDefaultModuleId
(
self
,
portal_type
,
default
=
MARKER
,
only_visible
=
False
):
...
...
product/ERP5Type/ERP5Type.py
View file @
e7024ea4
...
...
@@ -306,6 +306,10 @@ class ERP5TypeInformation(XMLObject,
'personal_item'
,
# Base
'entity'
,
'login'
,
# Wendelin
'device'
,
'device_configuration'
,
'data_descriptor'
,
# LEGACY - needs a warning - XXX-JPS
'tax_movement'
,
)
...
...
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