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
iv
erp5
Commits
bf9a74c9
Commit
bf9a74c9
authored
Sep 01, 2016
by
iv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Workflow: use cell method
instead of re-coding the wheel
parent
d5cc61e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
product/ERP5Workflow/Document/PermissionRoles.py
product/ERP5Workflow/Document/PermissionRoles.py
+4
-2
No files found.
product/ERP5Workflow/Document/PermissionRoles.py
View file @
bf9a74c9
...
...
@@ -111,8 +111,10 @@ class PermissionRoles(XMLObject):
state
=
self
.
getParentValue
()
cell_range
=
state
.
getCellRange
()
cell_permission
=
sorted
(
cell_range
[
0
])[
self
.
_getPermissionIndex
()]
cell_role
=
sorted
(
cell_range
[
1
])[
self
.
_getRoleIndex
()]
cell_permission
=
self
.
_getPermission
()
cell_role
=
self
.
_getRole
()
# update the state permission structure to take into account
# the selection/non-selection of this cell
if
value
and
(
cell_role
not
in
state
.
state_permission_roles
[
cell_permission
]):
...
...
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