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
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
Lisa Casino
slapos.core
Commits
6a8ab47d
Commit
6a8ab47d
authored
Dec 11, 2012
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Give shadow access on accounts.
parent
15436030
Changes
18
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
183 additions
and
3 deletions
+183
-3
master/bt5/slapos_erp5/LocalRolesTemplateItem/account_module.xml
...bt5/slapos_erp5/LocalRolesTemplateItem/account_module.xml
+3
-0
master/bt5/slapos_erp5/LocalRolesTemplateItem/account_module/bank.xml
...lapos_erp5/LocalRolesTemplateItem/account_module/bank.xml
+13
-0
master/bt5/slapos_erp5/LocalRolesTemplateItem/account_module/capital.xml
...os_erp5/LocalRolesTemplateItem/account_module/capital.xml
+13
-0
master/bt5/slapos_erp5/LocalRolesTemplateItem/account_module/coll_vat.xml
...s_erp5/LocalRolesTemplateItem/account_module/coll_vat.xml
+13
-0
master/bt5/slapos_erp5/LocalRolesTemplateItem/account_module/equipments.xml
...erp5/LocalRolesTemplateItem/account_module/equipments.xml
+13
-0
master/bt5/slapos_erp5/LocalRolesTemplateItem/account_module/inventories.xml
...rp5/LocalRolesTemplateItem/account_module/inventories.xml
+13
-0
master/bt5/slapos_erp5/LocalRolesTemplateItem/account_module/payable.xml
...os_erp5/LocalRolesTemplateItem/account_module/payable.xml
+13
-0
master/bt5/slapos_erp5/LocalRolesTemplateItem/account_module/profit_loss.xml
...rp5/LocalRolesTemplateItem/account_module/profit_loss.xml
+13
-0
master/bt5/slapos_erp5/LocalRolesTemplateItem/account_module/purchase.xml
...s_erp5/LocalRolesTemplateItem/account_module/purchase.xml
+13
-0
master/bt5/slapos_erp5/LocalRolesTemplateItem/account_module/receivable.xml
...erp5/LocalRolesTemplateItem/account_module/receivable.xml
+13
-0
master/bt5/slapos_erp5/LocalRolesTemplateItem/account_module/refundable_vat.xml
.../LocalRolesTemplateItem/account_module/refundable_vat.xml
+13
-0
master/bt5/slapos_erp5/LocalRolesTemplateItem/account_module/sales.xml
...apos_erp5/LocalRolesTemplateItem/account_module/sales.xml
+13
-0
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Account%20Module.xml
...pos_erp5/PortalTypeRolesTemplateItem/Account%20Module.xml
+5
-0
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Account.xml
...r/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Account.xml
+5
-0
master/bt5/slapos_erp5/TestTemplateItem/testSlapOSERP5GroupRoleSecurity.py
..._erp5/TestTemplateItem/testSlapOSERP5GroupRoleSecurity.py
+4
-2
master/bt5/slapos_erp5/bt/revision
master/bt5/slapos_erp5/bt/revision
+1
-1
master/bt5/slapos_erp5/bt/template_local_role_list
master/bt5/slapos_erp5/bt/template_local_role_list
+11
-0
master/bt5/slapos_erp5/bt/template_local_roles_list
master/bt5/slapos_erp5/bt/template_local_roles_list
+11
-0
No files found.
master/bt5/slapos_erp5/LocalRolesTemplateItem/account_module.xml
View file @
6a8ab47d
...
@@ -4,6 +4,9 @@
...
@@ -4,6 +4,9 @@
<item>
Auditor
</item>
<item>
Auditor
</item>
<item>
Author
</item>
<item>
Author
</item>
</role>
</role>
<role
id=
'R-SHADOW-PERSON'
>
<item>
Auditor
</item>
</role>
<role
id=
'zope'
>
<role
id=
'zope'
>
<item>
Owner
</item>
<item>
Owner
</item>
</role>
</role>
...
...
master/bt5/slapos_erp5/LocalRolesTemplateItem/account_module/bank.xml
0 → 100644
View file @
6a8ab47d
<local_roles_item>
<local_roles>
<role
id=
'G-COMPANY'
>
<item>
Assignor
</item>
</role>
<role
id=
'R-SHADOW-PERSON'
>
<item>
Auditor
</item>
</role>
<role
id=
'admin'
>
<item>
Owner
</item>
</role>
</local_roles>
</local_roles_item>
\ No newline at end of file
master/bt5/slapos_erp5/LocalRolesTemplateItem/account_module/capital.xml
0 → 100644
View file @
6a8ab47d
<local_roles_item>
<local_roles>
<role
id=
'G-COMPANY'
>
<item>
Assignor
</item>
</role>
<role
id=
'R-SHADOW-PERSON'
>
<item>
Auditor
</item>
</role>
<role
id=
'admin'
>
<item>
Owner
</item>
</role>
</local_roles>
</local_roles_item>
\ No newline at end of file
master/bt5/slapos_erp5/LocalRolesTemplateItem/account_module/coll_vat.xml
0 → 100644
View file @
6a8ab47d
<local_roles_item>
<local_roles>
<role
id=
'G-COMPANY'
>
<item>
Assignor
</item>
</role>
<role
id=
'R-SHADOW-PERSON'
>
<item>
Auditor
</item>
</role>
<role
id=
'admin'
>
<item>
Owner
</item>
</role>
</local_roles>
</local_roles_item>
\ No newline at end of file
master/bt5/slapos_erp5/LocalRolesTemplateItem/account_module/equipments.xml
0 → 100644
View file @
6a8ab47d
<local_roles_item>
<local_roles>
<role
id=
'G-COMPANY'
>
<item>
Assignor
</item>
</role>
<role
id=
'R-SHADOW-PERSON'
>
<item>
Auditor
</item>
</role>
<role
id=
'admin'
>
<item>
Owner
</item>
</role>
</local_roles>
</local_roles_item>
\ No newline at end of file
master/bt5/slapos_erp5/LocalRolesTemplateItem/account_module/inventories.xml
0 → 100644
View file @
6a8ab47d
<local_roles_item>
<local_roles>
<role
id=
'G-COMPANY'
>
<item>
Assignor
</item>
</role>
<role
id=
'R-SHADOW-PERSON'
>
<item>
Auditor
</item>
</role>
<role
id=
'admin'
>
<item>
Owner
</item>
</role>
</local_roles>
</local_roles_item>
\ No newline at end of file
master/bt5/slapos_erp5/LocalRolesTemplateItem/account_module/payable.xml
0 → 100644
View file @
6a8ab47d
<local_roles_item>
<local_roles>
<role
id=
'G-COMPANY'
>
<item>
Assignor
</item>
</role>
<role
id=
'R-SHADOW-PERSON'
>
<item>
Auditor
</item>
</role>
<role
id=
'admin'
>
<item>
Owner
</item>
</role>
</local_roles>
</local_roles_item>
\ No newline at end of file
master/bt5/slapos_erp5/LocalRolesTemplateItem/account_module/profit_loss.xml
0 → 100644
View file @
6a8ab47d
<local_roles_item>
<local_roles>
<role
id=
'G-COMPANY'
>
<item>
Assignor
</item>
</role>
<role
id=
'R-SHADOW-PERSON'
>
<item>
Auditor
</item>
</role>
<role
id=
'admin'
>
<item>
Owner
</item>
</role>
</local_roles>
</local_roles_item>
\ No newline at end of file
master/bt5/slapos_erp5/LocalRolesTemplateItem/account_module/purchase.xml
0 → 100644
View file @
6a8ab47d
<local_roles_item>
<local_roles>
<role
id=
'G-COMPANY'
>
<item>
Assignor
</item>
</role>
<role
id=
'R-SHADOW-PERSON'
>
<item>
Auditor
</item>
</role>
<role
id=
'admin'
>
<item>
Owner
</item>
</role>
</local_roles>
</local_roles_item>
\ No newline at end of file
master/bt5/slapos_erp5/LocalRolesTemplateItem/account_module/receivable.xml
0 → 100644
View file @
6a8ab47d
<local_roles_item>
<local_roles>
<role
id=
'G-COMPANY'
>
<item>
Assignor
</item>
</role>
<role
id=
'R-SHADOW-PERSON'
>
<item>
Auditor
</item>
</role>
<role
id=
'admin'
>
<item>
Owner
</item>
</role>
</local_roles>
</local_roles_item>
\ No newline at end of file
master/bt5/slapos_erp5/LocalRolesTemplateItem/account_module/refundable_vat.xml
0 → 100644
View file @
6a8ab47d
<local_roles_item>
<local_roles>
<role
id=
'G-COMPANY'
>
<item>
Assignor
</item>
</role>
<role
id=
'R-SHADOW-PERSON'
>
<item>
Auditor
</item>
</role>
<role
id=
'admin'
>
<item>
Owner
</item>
</role>
</local_roles>
</local_roles_item>
\ No newline at end of file
master/bt5/slapos_erp5/LocalRolesTemplateItem/account_module/sales.xml
0 → 100644
View file @
6a8ab47d
<local_roles_item>
<local_roles>
<role
id=
'G-COMPANY'
>
<item>
Assignor
</item>
</role>
<role
id=
'R-SHADOW-PERSON'
>
<item>
Auditor
</item>
</role>
<role
id=
'admin'
>
<item>
Owner
</item>
</role>
</local_roles>
</local_roles_item>
\ No newline at end of file
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Account%20Module.xml
View file @
6a8ab47d
...
@@ -4,4 +4,9 @@
...
@@ -4,4 +4,9 @@
<multi_property
id=
'category'
>
group/company
</multi_property>
<multi_property
id=
'category'
>
group/company
</multi_property>
<multi_property
id=
'base_category'
>
group
</multi_property>
<multi_property
id=
'base_category'
>
group
</multi_property>
</role>
</role>
<role
id=
'Auditor'
>
<property
id=
'title'
>
Person Shadow
</property>
<multi_property
id=
'category'
>
role/shadow/person
</multi_property>
<multi_property
id=
'base_category'
>
role
</multi_property>
</role>
</type_roles>
</type_roles>
\ No newline at end of file
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Account.xml
View file @
6a8ab47d
...
@@ -4,4 +4,9 @@
...
@@ -4,4 +4,9 @@
<multi_property
id=
'category'
>
group/company
</multi_property>
<multi_property
id=
'category'
>
group/company
</multi_property>
<multi_property
id=
'base_category'
>
group
</multi_property>
<multi_property
id=
'base_category'
>
group
</multi_property>
</role>
</role>
<role
id=
'Auditor'
>
<property
id=
'title'
>
Person Shadow
</property>
<multi_property
id=
'category'
>
role/shadow/person
</multi_property>
<multi_property
id=
'base_category'
>
role
</multi_property>
</role>
</type_roles>
</type_roles>
\ No newline at end of file
master/bt5/slapos_erp5/TestTemplateItem/testSlapOSERP5GroupRoleSecurity.py
View file @
6a8ab47d
...
@@ -906,8 +906,9 @@ class TestAccountModule(TestSlapOSGroupRoleSecurityMixin):
...
@@ -906,8 +906,9 @@ class TestAccountModule(TestSlapOSGroupRoleSecurityMixin):
def
test
(
self
):
def
test
(
self
):
module
=
self
.
portal
.
account_module
module
=
self
.
portal
.
account_module
self
.
assertSecurityGroup
(
module
,
self
.
assertSecurityGroup
(
module
,
[
'G-COMPANY'
,
'zope'
],
False
)
[
'G-COMPANY'
,
'zope'
,
'R-SHADOW-PERSON'
],
False
)
self
.
assertRoles
(
module
,
'G-COMPANY'
,
[
'Auditor'
,
'Author'
])
self
.
assertRoles
(
module
,
'G-COMPANY'
,
[
'Auditor'
,
'Author'
])
self
.
assertRoles
(
module
,
'R-SHADOW-PERSON'
,
[
'Auditor'
])
self
.
assertRoles
(
module
,
'zope'
,
[
'Owner'
])
self
.
assertRoles
(
module
,
'zope'
,
[
'Owner'
])
class
TestAccount
(
TestSlapOSGroupRoleSecurityMixin
):
class
TestAccount
(
TestSlapOSGroupRoleSecurityMixin
):
...
@@ -916,8 +917,9 @@ class TestAccount(TestSlapOSGroupRoleSecurityMixin):
...
@@ -916,8 +917,9 @@ class TestAccount(TestSlapOSGroupRoleSecurityMixin):
portal_type
=
'Account'
)
portal_type
=
'Account'
)
product
.
updateLocalRolesOnSecurityGroups
()
product
.
updateLocalRolesOnSecurityGroups
()
self
.
assertSecurityGroup
(
product
,
self
.
assertSecurityGroup
(
product
,
[
'G-COMPANY'
,
self
.
user_id
],
False
)
[
'G-COMPANY'
,
self
.
user_id
,
'R-SHADOW-PERSON'
],
False
)
self
.
assertRoles
(
product
,
'G-COMPANY'
,
[
'Assignor'
])
self
.
assertRoles
(
product
,
'G-COMPANY'
,
[
'Assignor'
])
self
.
assertRoles
(
product
,
'R-SHADOW-PERSON'
,
[
'Auditor'
])
self
.
assertRoles
(
product
,
self
.
user_id
,
[
'Owner'
])
self
.
assertRoles
(
product
,
self
.
user_id
,
[
'Owner'
])
class
TestCurrencyModule
(
TestSlapOSGroupRoleSecurityMixin
):
class
TestCurrencyModule
(
TestSlapOSGroupRoleSecurityMixin
):
...
...
master/bt5/slapos_erp5/bt/revision
View file @
6a8ab47d
139
140
\ No newline at end of file
\ No newline at end of file
master/bt5/slapos_erp5/bt/template_local_role_list
View file @
6a8ab47d
account_module
account_module
account_module/bank
account_module/capital
account_module/coll_vat
account_module/equipments
account_module/inventories
account_module/payable
account_module/profit_loss
account_module/purchase
account_module/receivable
account_module/refundable_vat
account_module/sales
accounting_module
accounting_module
campaign_module
campaign_module
component_module
component_module
...
...
master/bt5/slapos_erp5/bt/template_local_roles_list
View file @
6a8ab47d
account_module
account_module
account_module/bank
account_module/capital
account_module/coll_vat
account_module/equipments
account_module/inventories
account_module/payable
account_module/profit_loss
account_module/purchase
account_module/receivable
account_module/refundable_vat
account_module/sales
accounting_module
accounting_module
campaign_module
campaign_module
component_module
component_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