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
138
Merge Requests
138
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
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
08919703
Commit
08919703
authored
Dec 31, 2020
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_dms: use default value for site
but why this script is in this bt5...
parent
b921cd9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/ERP5Type_getSecurityCategoryFromDestination.py
...s/erp5_dms/ERP5Type_getSecurityCategoryFromDestination.py
+6
-3
No files found.
bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/ERP5Type_getSecurityCategoryFromDestination.py
View file @
08919703
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
Security categories assigned from the Person who is set as the destination
Security categories assigned from the Person who is set as the destination
of the document (e.g. in Memo type).
of the document (e.g. in Memo type).
"""
"""
from
Products.ERP5Type.Log
import
log
#
from Products.ERP5Type.Log import log
category_list
=
[]
category_list
=
[]
for
ob
in
object
.
getDestinationValueList
():
for
ob
in
object
.
getDestinationValueList
():
...
@@ -15,8 +15,11 @@ for ob in object.getDestinationValueList():
...
@@ -15,8 +15,11 @@ for ob in object.getDestinationValueList():
if
category_value
not
in
(
None
,
''
):
if
category_value
not
in
(
None
,
''
):
category_dict
[
base_category
]
=
category_value
category_dict
[
base_category
]
=
category_value
else
:
else
:
raise
RuntimeError
,
"Error: '%s' property is required in order to update person security group"
%
(
base_category
)
if
base_category
==
'site'
:
category_dict
[
base_category
]
=
'main/warehouse'
else
:
raise
RuntimeError
,
"Error: '%s' property is required in order to update person security group"
%
(
base_category
)
category_list
.
append
(
category_dict
)
category_list
.
append
(
category_dict
)
log
(
category_list
)
#
log(category_list)
return
category_list
return
category_list
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