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
Labels
Merge Requests
18
Merge Requests
18
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos.core
Commits
5bd73a38
Commit
5bd73a38
authored
Nov 12, 2012
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate Sale Order/Packing List security configuration.
parent
a6a3fce1
Changes
20
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
102 additions
and
80 deletions
+102
-80
master/bt5/slapos_erp5/LocalRolesTemplateItem/sale_order_module.xml
.../slapos_erp5/LocalRolesTemplateItem/sale_order_module.xml
+11
-0
master/bt5/slapos_erp5/LocalRolesTemplateItem/sale_packing_list_module.xml
..._erp5/LocalRolesTemplateItem/sale_packing_list_module.xml
+11
-0
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Sale%20Order%20Module.xml
...rp5/PortalTypeRolesTemplateItem/Sale%20Order%20Module.xml
+7
-0
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Sale%20Order.xml
.../slapos_erp5/PortalTypeRolesTemplateItem/Sale%20Order.xml
+7
-0
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Sale%20Packing%20List%20Module.xml
...lTypeRolesTemplateItem/Sale%20Packing%20List%20Module.xml
+7
-0
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Sale%20Packing%20List.xml
...rp5/PortalTypeRolesTemplateItem/Sale%20Packing%20List.xml
+7
-0
master/bt5/slapos_erp5/TestTemplateItem/testSlapOSERP5GroupRoleSecurity.py
..._erp5/TestTemplateItem/testSlapOSERP5GroupRoleSecurity.py
+35
-0
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
+2
-0
master/bt5/slapos_erp5/bt/template_local_roles_list
master/bt5/slapos_erp5/bt/template_local_roles_list
+3
-1
master/bt5/slapos_erp5/bt/template_portal_type_role_list
master/bt5/slapos_erp5/bt/template_portal_type_role_list
+4
-0
master/bt5/slapos_erp5/bt/template_portal_type_roles_list
master/bt5/slapos_erp5/bt/template_portal_type_roles_list
+6
-2
master/bt5/vifib_erp5/PortalTypeRolesTemplateItem/Sale%20Order%20Module.xml
...rp5/PortalTypeRolesTemplateItem/Sale%20Order%20Module.xml
+0
-22
master/bt5/vifib_erp5/PortalTypeRolesTemplateItem/Sale%20Packing%20List%20Module.xml
...lTypeRolesTemplateItem/Sale%20Packing%20List%20Module.xml
+0
-22
master/bt5/vifib_erp5/PortalTypeRolesTemplateItem/Sale%20Packing%20List.xml
...rp5/PortalTypeRolesTemplateItem/Sale%20Packing%20List.xml
+0
-19
master/bt5/vifib_erp5/bt/revision
master/bt5/vifib_erp5/bt/revision
+1
-1
master/bt5/vifib_erp5/bt/template_local_role_list
master/bt5/vifib_erp5/bt/template_local_role_list
+0
-2
master/bt5/vifib_erp5/bt/template_local_roles_list
master/bt5/vifib_erp5/bt/template_local_roles_list
+0
-2
master/bt5/vifib_erp5/bt/template_portal_type_role_list
master/bt5/vifib_erp5/bt/template_portal_type_role_list
+0
-4
master/bt5/vifib_erp5/bt/template_portal_type_roles_list
master/bt5/vifib_erp5/bt/template_portal_type_roles_list
+0
-4
No files found.
master/bt5/
vifib
_erp5/LocalRolesTemplateItem/sale_order_module.xml
→
master/bt5/
slapos
_erp5/LocalRolesTemplateItem/sale_order_module.xml
View file @
5bd73a38
...
...
@@ -4,17 +4,6 @@
<item>
Auditor
</item>
<item>
Author
</item>
</role>
<role
id=
'R-COMPUTER'
>
<item>
Auditor
</item>
</role>
<role
id=
'R-INSTANCE'
>
<item>
Auditor
</item>
<item>
Author
</item>
</role>
<role
id=
'R-MEMBER'
>
<item>
Auditor
</item>
<item>
Author
</item>
</role>
<role
id=
'admin'
>
<item>
Owner
</item>
</role>
...
...
master/bt5/
vifib
_erp5/LocalRolesTemplateItem/sale_packing_list_module.xml
→
master/bt5/
slapos
_erp5/LocalRolesTemplateItem/sale_packing_list_module.xml
View file @
5bd73a38
...
...
@@ -4,18 +4,6 @@
<item>
Auditor
</item>
<item>
Author
</item>
</role>
<role
id=
'R-COMPUTER'
>
<item>
Auditor
</item>
<item>
Author
</item>
</role>
<role
id=
'R-INSTANCE'
>
<item>
Auditor
</item>
<item>
Author
</item>
</role>
<role
id=
'R-MEMBER'
>
<item>
Auditor
</item>
<item>
Author
</item>
</role>
<role
id=
'admin'
>
<item>
Owner
</item>
</role>
...
...
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Sale%20Order%20Module.xml
0 → 100644
View file @
5bd73a38
<type_roles>
<role
id=
'Author; Auditor'
>
<property
id=
'title'
>
Group company
</property>
<multi_property
id=
'category'
>
group/company
</multi_property>
<multi_property
id=
'base_category'
>
group
</multi_property>
</role>
</type_roles>
\ No newline at end of file
master/bt5/
vifib
_erp5/PortalTypeRolesTemplateItem/Sale%20Order.xml
→
master/bt5/
slapos
_erp5/PortalTypeRolesTemplateItem/Sale%20Order.xml
View file @
5bd73a38
<type_roles>
<role
id=
'Assignee'
>
<property
id=
'title'
>
Destination Decision
</property>
<property
id=
'description'
>
Monovalued role
</property>
<property
id=
'base_category_script'
>
ERP5Type_getSecurityCategoryFromContent
</property>
<multi_property
id=
'base_category'
>
destination_decision
</multi_property>
</role>
<role
id=
'Assignor'
>
<property
id=
'title'
>
Group company
</property>
<multi_property
id=
'category'
>
group/company
</multi_property>
...
...
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Sale%20Packing%20List%20Module.xml
0 → 100644
View file @
5bd73a38
<type_roles>
<role
id=
'Author; Auditor'
>
<property
id=
'title'
>
Group company
</property>
<multi_property
id=
'category'
>
group/company
</multi_property>
<multi_property
id=
'base_category'
>
group
</multi_property>
</role>
</type_roles>
\ No newline at end of file
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Sale%20Packing%20List.xml
0 → 100644
View file @
5bd73a38
<type_roles>
<role
id=
'Assignor'
>
<property
id=
'title'
>
Group company
</property>
<multi_property
id=
'category'
>
group/company
</multi_property>
<multi_property
id=
'base_category'
>
group
</multi_property>
</role>
</type_roles>
\ No newline at end of file
master/bt5/slapos_erp5/TestTemplateItem/testSlapOSERP5GroupRoleSecurity.py
View file @
5bd73a38
...
...
@@ -768,3 +768,38 @@ class TestOpenSaleOrder(TestSlapOSGroupRoleSecurityMixin):
self
.
assertRoles
(
product
,
'G-COMPANY'
,
[
'Assignor'
])
self
.
assertRoles
(
product
,
self
.
user_id
,
[
'Owner'
])
class
TestSaleOrderModule
(
TestSlapOSGroupRoleSecurityMixin
):
def
test
(
self
):
module
=
self
.
portal
.
sale_order_module
self
.
assertSecurityGroup
(
module
,
[
'G-COMPANY'
,
'admin'
],
True
)
self
.
assertRoles
(
module
,
'G-COMPANY'
,
[
'Auditor'
,
'Author'
])
self
.
assertRoles
(
module
,
'admin'
,
[
'Owner'
])
class
TestSaleOrder
(
TestSlapOSGroupRoleSecurityMixin
):
def
test_GroupCompany
(
self
):
product
=
self
.
portal
.
sale_order_module
.
newContent
(
portal_type
=
'Sale Order'
)
product
.
updateLocalRolesOnSecurityGroups
()
self
.
assertSecurityGroup
(
product
,
[
'G-COMPANY'
,
self
.
user_id
],
False
)
self
.
assertRoles
(
product
,
'G-COMPANY'
,
[
'Assignor'
])
self
.
assertRoles
(
product
,
self
.
user_id
,
[
'Owner'
])
class
TestSalePackingListModule
(
TestSlapOSGroupRoleSecurityMixin
):
def
test
(
self
):
module
=
self
.
portal
.
sale_packing_list_module
self
.
assertSecurityGroup
(
module
,
[
'G-COMPANY'
,
'admin'
],
False
)
self
.
assertRoles
(
module
,
'G-COMPANY'
,
[
'Auditor'
,
'Author'
])
self
.
assertRoles
(
module
,
'admin'
,
[
'Owner'
])
class
TestSalePackingList
(
TestSlapOSGroupRoleSecurityMixin
):
def
test_GroupCompany
(
self
):
product
=
self
.
portal
.
sale_packing_list_module
.
newContent
(
portal_type
=
'Sale Packing List'
)
product
.
updateLocalRolesOnSecurityGroups
()
self
.
assertSecurityGroup
(
product
,
[
'G-COMPANY'
,
self
.
user_id
],
False
)
self
.
assertRoles
(
product
,
'G-COMPANY'
,
[
'Assignor'
])
self
.
assertRoles
(
product
,
self
.
user_id
,
[
'Owner'
])
master/bt5/slapos_erp5/bt/revision
View file @
5bd73a38
79
\ No newline at end of file
80
\ No newline at end of file
master/bt5/slapos_erp5/bt/template_local_role_list
View file @
5bd73a38
...
...
@@ -10,6 +10,8 @@ open_sale_order_module
organisation_module
person_module
portal_contributions
sale_order_module
sale_packing_list_module
software_installation_module
software_instance_module
software_product_module
...
...
master/bt5/slapos_erp5/bt/template_local_roles_list
View file @
5bd73a38
open_sale_order_module
computer_model_module
computer_module
computer_network_module
...
...
@@ -7,7 +6,10 @@ data_set_module
document_module
hosting_subscription_module
image_module
open_sale_order_module
organisation_module
sale_order_module
sale_packing_list_module
person_module
portal_contributions
software_installation_module
...
...
master/bt5/slapos_erp5/bt/template_portal_type_role_list
View file @
5bd73a38
...
...
@@ -24,6 +24,10 @@ PDF
Person
Person Module
Presentation
Sale Order
Sale Order Module
Sale Packing List
Sale Packing List Module
Slave Instance
Software Installation
Software Installation Module
...
...
master/bt5/slapos_erp5/bt/template_portal_type_roles_list
View file @
5bd73a38
Open Sale Order
Open Sale Order Module
Assignment
Sale Order
Sale Order Module
Sale Packing List
Sale Packing List Module
Computer
Computer Model
Computer Model Module
...
...
@@ -18,6 +20,8 @@ Hosting Subscription
Hosting Subscription Module
Image
Image Module
Open Sale Order
Open Sale Order Module
Organisation
Organisation Module
PDF
...
...
master/bt5/vifib_erp5/PortalTypeRolesTemplateItem/Sale%20Order%20Module.xml
deleted
100644 → 0
View file @
a6a3fce1
<type_roles>
<role
id=
'Auditor'
>
<property
id=
'title'
>
Computer
</property>
<multi_property
id=
'category'
>
role/computer
</multi_property>
<multi_property
id=
'base_category'
>
role
</multi_property>
</role>
<role
id=
'Author; Auditor'
>
<property
id=
'title'
>
Group company
</property>
<multi_property
id=
'category'
>
group/company
</multi_property>
<multi_property
id=
'base_category'
>
group
</multi_property>
</role>
<role
id=
'Auditor; Author'
>
<property
id=
'title'
>
Instance
</property>
<multi_property
id=
'category'
>
role/instance
</multi_property>
<multi_property
id=
'base_category'
>
role
</multi_property>
</role>
<role
id=
'Auditor; Author'
>
<property
id=
'title'
>
Member
</property>
<multi_property
id=
'category'
>
role/member
</multi_property>
<multi_property
id=
'base_category'
>
role
</multi_property>
</role>
</type_roles>
\ No newline at end of file
master/bt5/vifib_erp5/PortalTypeRolesTemplateItem/Sale%20Packing%20List%20Module.xml
deleted
100644 → 0
View file @
a6a3fce1
<type_roles>
<role
id=
'Auditor; Author'
>
<property
id=
'title'
>
Computer
</property>
<multi_property
id=
'category'
>
role/computer
</multi_property>
<multi_property
id=
'base_category'
>
role
</multi_property>
</role>
<role
id=
'Author; Auditor'
>
<property
id=
'title'
>
Group company
</property>
<multi_property
id=
'category'
>
group/company
</multi_property>
<multi_property
id=
'base_category'
>
group
</multi_property>
</role>
<role
id=
'Auditor; Author'
>
<property
id=
'title'
>
Instance
</property>
<multi_property
id=
'category'
>
role/instance
</multi_property>
<multi_property
id=
'base_category'
>
role
</multi_property>
</role>
<role
id=
'Auditor; Author'
>
<property
id=
'title'
>
Member
</property>
<multi_property
id=
'category'
>
role/member
</multi_property>
<multi_property
id=
'base_category'
>
role
</multi_property>
</role>
</type_roles>
\ No newline at end of file
master/bt5/vifib_erp5/PortalTypeRolesTemplateItem/Sale%20Packing%20List.xml
deleted
100644 → 0
View file @
a6a3fce1
<type_roles>
<role
id=
'Assignee'
>
<property
id=
'title'
>
Destination Decision
</property>
<property
id=
'description'
>
Monovalued role
</property>
<property
id=
'base_category_script'
>
ERP5Type_getSecurityCategoryFromContent
</property>
<multi_property
id=
'base_category'
>
destination_decision
</multi_property>
</role>
<role
id=
'Auditor'
>
<property
id=
'title'
>
Destination Section
</property>
<property
id=
'description'
>
Monovalued role
</property>
<property
id=
'base_category_script'
>
ERP5Type_getSecurityCategoryFromContent
</property>
<multi_property
id=
'base_category'
>
destination_section
</multi_property>
</role>
<role
id=
'Assignor'
>
<property
id=
'title'
>
Group company
</property>
<multi_property
id=
'category'
>
group/company
</multi_property>
<multi_property
id=
'base_category'
>
group
</multi_property>
</role>
</type_roles>
\ No newline at end of file
master/bt5/vifib_erp5/bt/revision
View file @
5bd73a38
556
\ No newline at end of file
557
\ No newline at end of file
master/bt5/vifib_erp5/bt/template_local_role_list
View file @
5bd73a38
...
...
@@ -55,8 +55,6 @@ purchase_packing_list_module
purchase_trade_condition_module
query_module
sale_opportunity_module
sale_order_module
sale_packing_list_module
sale_trade_condition_module
sale_trade_condition_module/vifib_trade_condition
service_module
...
...
master/bt5/vifib_erp5/bt/template_local_roles_list
View file @
5bd73a38
...
...
@@ -55,8 +55,6 @@ purchase_packing_list_module
purchase_trade_condition_module
query_module
sale_opportunity_module
sale_order_module
sale_packing_list_module
sale_trade_condition_module
sale_trade_condition_module/vifib_trade_condition
service_module
...
...
master/bt5/vifib_erp5/bt/template_portal_type_role_list
View file @
5bd73a38
...
...
@@ -55,10 +55,6 @@ Query Module
Sale Invoice Transaction
Sale Opportunity
Sale Opportunity Module
Sale Order
Sale Order Module
Sale Packing List
Sale Packing List Module
Sale Trade Condition
Sale Trade Condition Module
Service
...
...
master/bt5/vifib_erp5/bt/template_portal_type_roles_list
View file @
5bd73a38
...
...
@@ -55,10 +55,6 @@ Query Module
Sale Invoice Transaction
Sale Opportunity
Sale Opportunity Module
Sale Order
Sale Order Module
Sale Packing List
Sale Packing List Module
Sale Trade Condition
Sale Trade Condition Module
Service
...
...
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