Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
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
1
Merge Requests
1
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
Romain Courteaud
slapos.core
Commits
83aa35c2
Commit
83aa35c2
authored
Nov 02, 2023
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_erp5: fixup Bank Account local roles
parent
6f678c50
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
4 deletions
+21
-4
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Bank%20Account.xml
...lapos_erp5/PortalTypeRolesTemplateItem/Bank%20Account.xml
+10
-4
master/bt5/slapos_erp5/TestTemplateItem/portal_components/test.erp5.testSlapOSERP5GroupRoleSecurity.py
...l_components/test.erp5.testSlapOSERP5GroupRoleSecurity.py
+11
-0
No files found.
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Bank%20Account.xml
View file @
83aa35c2
<type_roles>
<type_roles>
<role
id=
'Assignee'
>
<property
id=
'title'
>
Accountant Agent
</property>
<multi_property
id=
'categories'
>
local_role_group/function
</multi_property>
<multi_property
id=
'category'
>
function/accounting/agent
</multi_property>
<multi_property
id=
'base_category'
>
function
</multi_property>
</role>
<role
id=
'Assignor'
>
<role
id=
'Assignor'
>
<property
id=
'title'
>
Group company
</property>
<property
id=
'title'
>
Accountant Manager
</property>
<multi_property
id=
'categories'
>
local_role_group/
group
</multi_property>
<multi_property
id=
'categories'
>
local_role_group/
function
</multi_property>
<multi_property
id=
'category'
>
group/company
</multi_property>
<multi_property
id=
'category'
>
function/accounting/manager
</multi_property>
<multi_property
id=
'base_category'
>
group
</multi_property>
<multi_property
id=
'base_category'
>
function
</multi_property>
</role>
</role>
</type_roles>
</type_roles>
\ No newline at end of file
master/bt5/slapos_erp5/TestTemplateItem/portal_components/test.erp5.testSlapOSERP5GroupRoleSecurity.py
View file @
83aa35c2
...
@@ -1621,6 +1621,17 @@ class TestOrganisation(TestSlapOSGroupRoleSecurityMixin):
...
@@ -1621,6 +1621,17 @@ class TestOrganisation(TestSlapOSGroupRoleSecurityMixin):
self
.
assertRoles
(
delivery
,
'R-SHADOW-PERSON'
,
[
'Auditor'
])
self
.
assertRoles
(
delivery
,
'R-SHADOW-PERSON'
,
[
'Auditor'
])
class
TestBankAccount
(
TestSlapOSGroupRoleSecurityMixin
):
def
test_BankAccount_default
(
self
):
delivery
=
self
.
portal
.
organisation_module
.
newContent
(
portal_type
=
'Organisation'
).
newContent
(
portal_type
=
"Bank Account"
)
self
.
assertSecurityGroup
(
delivery
,
[
'F-ACCAGT'
,
'F-ACCMAN'
,
self
.
user_id
],
False
)
self
.
assertRoles
(
delivery
,
self
.
user_id
,
[
'Owner'
])
self
.
assertRoles
(
delivery
,
'F-ACCAGT'
,
[
'Assignee'
])
self
.
assertRoles
(
delivery
,
'F-ACCMAN'
,
[
'Assignor'
])
class
TestBusinessProcessModule
(
TestSlapOSGroupRoleSecurityMixin
):
class
TestBusinessProcessModule
(
TestSlapOSGroupRoleSecurityMixin
):
def
test_BusinessProcessModule
(
self
):
def
test_BusinessProcessModule
(
self
):
module
=
self
.
portal
.
business_process_module
module
=
self
.
portal
.
business_process_module
...
...
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