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
59b2e028
Commit
59b2e028
authored
Dec 21, 2012
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow user to print the invoice.
parent
6c538622
Changes
41
Show whitespace changes
Inline
Side-by-side
Showing
41 changed files
with
228 additions
and
30 deletions
+228
-30
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
+4
-1
master/bt5/slapos_erp5/LocalRolesTemplateItem/account_module/capital.xml
...os_erp5/LocalRolesTemplateItem/account_module/capital.xml
+4
-1
master/bt5/slapos_erp5/LocalRolesTemplateItem/account_module/coll_vat.xml
...s_erp5/LocalRolesTemplateItem/account_module/coll_vat.xml
+4
-1
master/bt5/slapos_erp5/LocalRolesTemplateItem/account_module/equipments.xml
...erp5/LocalRolesTemplateItem/account_module/equipments.xml
+4
-1
master/bt5/slapos_erp5/LocalRolesTemplateItem/account_module/inventories.xml
...rp5/LocalRolesTemplateItem/account_module/inventories.xml
+4
-1
master/bt5/slapos_erp5/LocalRolesTemplateItem/account_module/payable.xml
...os_erp5/LocalRolesTemplateItem/account_module/payable.xml
+4
-1
master/bt5/slapos_erp5/LocalRolesTemplateItem/account_module/profit_loss.xml
...rp5/LocalRolesTemplateItem/account_module/profit_loss.xml
+4
-1
master/bt5/slapos_erp5/LocalRolesTemplateItem/account_module/purchase.xml
...s_erp5/LocalRolesTemplateItem/account_module/purchase.xml
+4
-1
master/bt5/slapos_erp5/LocalRolesTemplateItem/account_module/receivable.xml
...erp5/LocalRolesTemplateItem/account_module/receivable.xml
+4
-1
master/bt5/slapos_erp5/LocalRolesTemplateItem/account_module/refundable_vat.xml
.../LocalRolesTemplateItem/account_module/refundable_vat.xml
+4
-1
master/bt5/slapos_erp5/LocalRolesTemplateItem/account_module/sales.xml
...apos_erp5/LocalRolesTemplateItem/account_module/sales.xml
+4
-1
master/bt5/slapos_erp5/LocalRolesTemplateItem/accounting_module.xml
.../slapos_erp5/LocalRolesTemplateItem/accounting_module.xml
+3
-0
master/bt5/slapos_erp5/LocalRolesTemplateItem/business_process_module.xml
...s_erp5/LocalRolesTemplateItem/business_process_module.xml
+4
-1
master/bt5/slapos_erp5/LocalRolesTemplateItem/business_process_module/slapos_aggregated_business_process.xml
...ess_process_module/slapos_aggregated_business_process.xml
+4
-1
master/bt5/slapos_erp5/LocalRolesTemplateItem/business_process_module/slapos_consumption_business_process.xml
...ss_process_module/slapos_consumption_business_process.xml
+13
-0
master/bt5/slapos_erp5/LocalRolesTemplateItem/business_process_module/slapos_subscription_business_process.xml
...s_process_module/slapos_subscription_business_process.xml
+13
-0
master/bt5/slapos_erp5/LocalRolesTemplateItem/currency_module.xml
...t5/slapos_erp5/LocalRolesTemplateItem/currency_module.xml
+3
-0
master/bt5/slapos_erp5/LocalRolesTemplateItem/currency_module/EUR.xml
...lapos_erp5/LocalRolesTemplateItem/currency_module/EUR.xml
+4
-1
master/bt5/slapos_erp5/LocalRolesTemplateItem/sale_trade_condition_module.xml
...p5/LocalRolesTemplateItem/sale_trade_condition_module.xml
+3
-0
master/bt5/slapos_erp5/LocalRolesTemplateItem/service_module.xml
...bt5/slapos_erp5/LocalRolesTemplateItem/service_module.xml
+3
-0
master/bt5/slapos_erp5/LocalRolesTemplateItem/service_module/slapos_discount.xml
...LocalRolesTemplateItem/service_module/slapos_discount.xml
+6
-3
master/bt5/slapos_erp5/LocalRolesTemplateItem/service_module/slapos_instance_subscription.xml
...plateItem/service_module/slapos_instance_subscription.xml
+3
-0
master/bt5/slapos_erp5/LocalRolesTemplateItem/service_module/slapos_tax.xml
...erp5/LocalRolesTemplateItem/service_module/slapos_tax.xml
+6
-3
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/PortalTypeRolesTemplateItem/Accounting%20Transaction%20Module.xml
...peRolesTemplateItem/Accounting%20Transaction%20Module.xml
+5
-0
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Business%20Process%20Module.xml
...rtalTypeRolesTemplateItem/Business%20Process%20Module.xml
+12
-0
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Business%20Process.xml
...s_erp5/PortalTypeRolesTemplateItem/Business%20Process.xml
+12
-0
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Currency%20Module.xml
...os_erp5/PortalTypeRolesTemplateItem/Currency%20Module.xml
+5
-0
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Currency.xml
.../bt5/slapos_erp5/PortalTypeRolesTemplateItem/Currency.xml
+5
-0
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Sale%20Trade%20Condition%20Module.xml
...peRolesTemplateItem/Sale%20Trade%20Condition%20Module.xml
+5
-0
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Sale%20Trade%20Condition.xml
.../PortalTypeRolesTemplateItem/Sale%20Trade%20Condition.xml
+5
-0
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Service%20Module.xml
...pos_erp5/PortalTypeRolesTemplateItem/Service%20Module.xml
+5
-0
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Service.xml
...r/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Service.xml
+5
-0
master/bt5/slapos_erp5/TestTemplateItem/testSlapOSERP5GroupRoleSecurity.py
..._erp5/TestTemplateItem/testSlapOSERP5GroupRoleSecurity.py
+38
-9
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
+2
-0
master/bt5/slapos_erp5/bt/template_portal_type_role_list
master/bt5/slapos_erp5/bt/template_portal_type_role_list
+2
-0
master/bt5/slapos_erp5/bt/template_portal_type_roles_list
master/bt5/slapos_erp5/bt/template_portal_type_roles_list
+2
-0
No files found.
master/bt5/slapos_erp5/LocalRolesTemplateItem/account_module.xml
View file @
59b2e028
...
...
@@ -4,6 +4,9 @@
<item>
Auditor
</item>
<item>
Author
</item>
</role>
<role
id=
'R-MEMBER'
>
<item>
Auditor
</item>
</role>
<role
id=
'R-SHADOW-PERSON'
>
<item>
Auditor
</item>
</role>
...
...
master/bt5/slapos_erp5/LocalRolesTemplateItem/account_module/bank.xml
View file @
59b2e028
...
...
@@ -3,10 +3,13 @@
<role
id=
'G-COMPANY'
>
<item>
Assignor
</item>
</role>
<role
id=
'R-MEMBER'
>
<item>
Auditor
</item>
</role>
<role
id=
'R-SHADOW-PERSON'
>
<item>
Auditor
</item>
</role>
<role
id=
'
admin
'
>
<role
id=
'
zope
'
>
<item>
Owner
</item>
</role>
</local_roles>
...
...
master/bt5/slapos_erp5/LocalRolesTemplateItem/account_module/capital.xml
View file @
59b2e028
...
...
@@ -3,10 +3,13 @@
<role
id=
'G-COMPANY'
>
<item>
Assignor
</item>
</role>
<role
id=
'R-MEMBER'
>
<item>
Auditor
</item>
</role>
<role
id=
'R-SHADOW-PERSON'
>
<item>
Auditor
</item>
</role>
<role
id=
'
admin
'
>
<role
id=
'
zope
'
>
<item>
Owner
</item>
</role>
</local_roles>
...
...
master/bt5/slapos_erp5/LocalRolesTemplateItem/account_module/coll_vat.xml
View file @
59b2e028
...
...
@@ -3,10 +3,13 @@
<role
id=
'G-COMPANY'
>
<item>
Assignor
</item>
</role>
<role
id=
'R-MEMBER'
>
<item>
Auditor
</item>
</role>
<role
id=
'R-SHADOW-PERSON'
>
<item>
Auditor
</item>
</role>
<role
id=
'
admin
'
>
<role
id=
'
zope
'
>
<item>
Owner
</item>
</role>
</local_roles>
...
...
master/bt5/slapos_erp5/LocalRolesTemplateItem/account_module/equipments.xml
View file @
59b2e028
...
...
@@ -3,10 +3,13 @@
<role
id=
'G-COMPANY'
>
<item>
Assignor
</item>
</role>
<role
id=
'R-MEMBER'
>
<item>
Auditor
</item>
</role>
<role
id=
'R-SHADOW-PERSON'
>
<item>
Auditor
</item>
</role>
<role
id=
'
admin
'
>
<role
id=
'
zope
'
>
<item>
Owner
</item>
</role>
</local_roles>
...
...
master/bt5/slapos_erp5/LocalRolesTemplateItem/account_module/inventories.xml
View file @
59b2e028
...
...
@@ -3,10 +3,13 @@
<role
id=
'G-COMPANY'
>
<item>
Assignor
</item>
</role>
<role
id=
'R-MEMBER'
>
<item>
Auditor
</item>
</role>
<role
id=
'R-SHADOW-PERSON'
>
<item>
Auditor
</item>
</role>
<role
id=
'
admin
'
>
<role
id=
'
zope
'
>
<item>
Owner
</item>
</role>
</local_roles>
...
...
master/bt5/slapos_erp5/LocalRolesTemplateItem/account_module/payable.xml
View file @
59b2e028
...
...
@@ -3,10 +3,13 @@
<role
id=
'G-COMPANY'
>
<item>
Assignor
</item>
</role>
<role
id=
'R-MEMBER'
>
<item>
Auditor
</item>
</role>
<role
id=
'R-SHADOW-PERSON'
>
<item>
Auditor
</item>
</role>
<role
id=
'
admin
'
>
<role
id=
'
zope
'
>
<item>
Owner
</item>
</role>
</local_roles>
...
...
master/bt5/slapos_erp5/LocalRolesTemplateItem/account_module/profit_loss.xml
View file @
59b2e028
...
...
@@ -3,10 +3,13 @@
<role
id=
'G-COMPANY'
>
<item>
Assignor
</item>
</role>
<role
id=
'R-MEMBER'
>
<item>
Auditor
</item>
</role>
<role
id=
'R-SHADOW-PERSON'
>
<item>
Auditor
</item>
</role>
<role
id=
'
admin
'
>
<role
id=
'
zope
'
>
<item>
Owner
</item>
</role>
</local_roles>
...
...
master/bt5/slapos_erp5/LocalRolesTemplateItem/account_module/purchase.xml
View file @
59b2e028
...
...
@@ -3,10 +3,13 @@
<role
id=
'G-COMPANY'
>
<item>
Assignor
</item>
</role>
<role
id=
'R-MEMBER'
>
<item>
Auditor
</item>
</role>
<role
id=
'R-SHADOW-PERSON'
>
<item>
Auditor
</item>
</role>
<role
id=
'
admin
'
>
<role
id=
'
zope
'
>
<item>
Owner
</item>
</role>
</local_roles>
...
...
master/bt5/slapos_erp5/LocalRolesTemplateItem/account_module/receivable.xml
View file @
59b2e028
...
...
@@ -3,10 +3,13 @@
<role
id=
'G-COMPANY'
>
<item>
Assignor
</item>
</role>
<role
id=
'R-MEMBER'
>
<item>
Auditor
</item>
</role>
<role
id=
'R-SHADOW-PERSON'
>
<item>
Auditor
</item>
</role>
<role
id=
'
admin
'
>
<role
id=
'
zope
'
>
<item>
Owner
</item>
</role>
</local_roles>
...
...
master/bt5/slapos_erp5/LocalRolesTemplateItem/account_module/refundable_vat.xml
View file @
59b2e028
...
...
@@ -3,10 +3,13 @@
<role
id=
'G-COMPANY'
>
<item>
Assignor
</item>
</role>
<role
id=
'R-MEMBER'
>
<item>
Auditor
</item>
</role>
<role
id=
'R-SHADOW-PERSON'
>
<item>
Auditor
</item>
</role>
<role
id=
'
admin
'
>
<role
id=
'
zope
'
>
<item>
Owner
</item>
</role>
</local_roles>
...
...
master/bt5/slapos_erp5/LocalRolesTemplateItem/account_module/sales.xml
View file @
59b2e028
...
...
@@ -3,10 +3,13 @@
<role
id=
'G-COMPANY'
>
<item>
Assignor
</item>
</role>
<role
id=
'R-MEMBER'
>
<item>
Auditor
</item>
</role>
<role
id=
'R-SHADOW-PERSON'
>
<item>
Auditor
</item>
</role>
<role
id=
'
admin
'
>
<role
id=
'
zope
'
>
<item>
Owner
</item>
</role>
</local_roles>
...
...
master/bt5/slapos_erp5/LocalRolesTemplateItem/accounting_module.xml
View file @
59b2e028
...
...
@@ -4,6 +4,9 @@
<item>
Auditor
</item>
<item>
Author
</item>
</role>
<role
id=
'R-MEMBER'
>
<item>
Auditor
</item>
</role>
<role
id=
'R-SHADOW-PERSON'
>
<item>
Auditor
</item>
</role>
...
...
master/bt5/slapos_erp5/LocalRolesTemplateItem/business_process_module.xml
View file @
59b2e028
<local_roles_item>
<local_roles>
<role
id=
'R-COMPUTER'
>
<role
id=
'G-COMPANY'
>
<item>
Auditor
</item>
</role>
<role
id=
'R-MEMBER'
>
<item>
Auditor
</item>
</role>
<role
id=
'zope'
>
...
...
master/bt5/slapos_erp5/LocalRolesTemplateItem/business_process_module/slapos_aggregated_business_process.xml
View file @
59b2e028
<local_roles_item>
<local_roles>
<role
id=
'R-COMPUTER'
>
<role
id=
'G-COMPANY'
>
<item>
Auditor
</item>
</role>
<role
id=
'R-MEMBER'
>
<item>
Auditor
</item>
</role>
<role
id=
'zope'
>
...
...
master/bt5/slapos_erp5/LocalRolesTemplateItem/business_process_module/slapos_consumption_business_process.xml
0 → 100644
View file @
59b2e028
<local_roles_item>
<local_roles>
<role
id=
'G-COMPANY'
>
<item>
Auditor
</item>
</role>
<role
id=
'R-MEMBER'
>
<item>
Auditor
</item>
</role>
<role
id=
'zope'
>
<item>
Owner
</item>
</role>
</local_roles>
</local_roles_item>
\ No newline at end of file
master/bt5/slapos_erp5/LocalRolesTemplateItem/business_process_module/slapos_subscription_business_process.xml
0 → 100644
View file @
59b2e028
<local_roles_item>
<local_roles>
<role
id=
'G-COMPANY'
>
<item>
Auditor
</item>
</role>
<role
id=
'R-MEMBER'
>
<item>
Auditor
</item>
</role>
<role
id=
'zope'
>
<item>
Owner
</item>
</role>
</local_roles>
</local_roles_item>
\ No newline at end of file
master/bt5/slapos_erp5/LocalRolesTemplateItem/currency_module.xml
View file @
59b2e028
...
...
@@ -4,6 +4,9 @@
<item>
Auditor
</item>
<item>
Author
</item>
</role>
<role
id=
'R-MEMBER'
>
<item>
Auditor
</item>
</role>
<role
id=
'R-SHADOW-PERSON'
>
<item>
Auditor
</item>
</role>
...
...
master/bt5/slapos_erp5/LocalRolesTemplateItem/currency_module/EUR.xml
View file @
59b2e028
...
...
@@ -3,10 +3,13 @@
<role
id=
'G-COMPANY'
>
<item>
Assignor
</item>
</role>
<role
id=
'R-MEMBER'
>
<item>
Auditor
</item>
</role>
<role
id=
'R-SHADOW-PERSON'
>
<item>
Auditor
</item>
</role>
<role
id=
'
admin
'
>
<role
id=
'
zope
'
>
<item>
Owner
</item>
</role>
</local_roles>
...
...
master/bt5/slapos_erp5/LocalRolesTemplateItem/sale_trade_condition_module.xml
View file @
59b2e028
...
...
@@ -4,6 +4,9 @@
<item>
Auditor
</item>
<item>
Author
</item>
</role>
<role
id=
'R-MEMBER'
>
<item>
Auditor
</item>
</role>
<role
id=
'zope'
>
<item>
Owner
</item>
</role>
...
...
master/bt5/slapos_erp5/LocalRolesTemplateItem/service_module.xml
View file @
59b2e028
...
...
@@ -4,6 +4,9 @@
<item>
Auditor
</item>
<item>
Author
</item>
</role>
<role
id=
'R-MEMBER'
>
<item>
Auditor
</item>
</role>
<role
id=
'admin'
>
<item>
Owner
</item>
</role>
...
...
master/bt5/slapos_erp5/LocalRolesTemplateItem/service_module/slapos_discount.xml
View file @
59b2e028
<local_roles_item>
<local_roles>
<role
id=
'ERP5TypeTestCase'
>
<item>
Owner
</item>
</role>
<role
id=
'G-COMPANY'
>
<item>
Assignor
</item>
</role>
<role
id=
'R-MEMBER'
>
<item>
Auditor
</item>
</role>
<role
id=
'zope'
>
<item>
Owner
</item>
</role>
</local_roles>
</local_roles_item>
\ No newline at end of file
master/bt5/slapos_erp5/LocalRolesTemplateItem/service_module/slapos_instance_subscription.xml
View file @
59b2e028
...
...
@@ -3,6 +3,9 @@
<role
id=
'G-COMPANY'
>
<item>
Assignor
</item>
</role>
<role
id=
'R-MEMBER'
>
<item>
Auditor
</item>
</role>
<role
id=
'zope'
>
<item>
Owner
</item>
</role>
...
...
master/bt5/slapos_erp5/LocalRolesTemplateItem/service_module/slapos_tax.xml
View file @
59b2e028
<local_roles_item>
<local_roles>
<role
id=
'ERP5TypeTestCase'
>
<item>
Owner
</item>
</role>
<role
id=
'G-COMPANY'
>
<item>
Assignor
</item>
</role>
<role
id=
'R-MEMBER'
>
<item>
Auditor
</item>
</role>
<role
id=
'zope'
>
<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 @
59b2e028
...
...
@@ -4,6 +4,11 @@
<multi_property
id=
'category'
>
group/company
</multi_property>
<multi_property
id=
'base_category'
>
group
</multi_property>
</role>
<role
id=
'Auditor'
>
<property
id=
'title'
>
Member
</property>
<multi_property
id=
'category'
>
role/member
</multi_property>
<multi_property
id=
'base_category'
>
role
</multi_property>
</role>
<role
id=
'Auditor'
>
<property
id=
'title'
>
Person Shadow
</property>
<multi_property
id=
'category'
>
role/shadow/person
</multi_property>
...
...
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Account.xml
View file @
59b2e028
...
...
@@ -4,6 +4,11 @@
<multi_property
id=
'category'
>
group/company
</multi_property>
<multi_property
id=
'base_category'
>
group
</multi_property>
</role>
<role
id=
'Auditor'
>
<property
id=
'title'
>
Member
</property>
<multi_property
id=
'category'
>
role/member
</multi_property>
<multi_property
id=
'base_category'
>
role
</multi_property>
</role>
<role
id=
'Auditor'
>
<property
id=
'title'
>
Person Shadow
</property>
<multi_property
id=
'category'
>
role/shadow/person
</multi_property>
...
...
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Accounting%20Transaction%20Module.xml
View file @
59b2e028
...
...
@@ -4,6 +4,11 @@
<multi_property
id=
'category'
>
group/company
</multi_property>
<multi_property
id=
'base_category'
>
group
</multi_property>
</role>
<role
id=
'Auditor'
>
<property
id=
'title'
>
Member
</property>
<multi_property
id=
'category'
>
role/member
</multi_property>
<multi_property
id=
'base_category'
>
role
</multi_property>
</role>
<role
id=
'Auditor'
>
<property
id=
'title'
>
Person Shadow
</property>
<multi_property
id=
'category'
>
role/shadow/person
</multi_property>
...
...
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Business%20Process%20Module.xml
0 → 100644
View file @
59b2e028
<type_roles>
<role
id=
'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'
>
<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/slapos_erp5/PortalTypeRolesTemplateItem/Business%20Process.xml
0 → 100644
View file @
59b2e028
<type_roles>
<role
id=
'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'
>
<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/slapos_erp5/PortalTypeRolesTemplateItem/Currency%20Module.xml
View file @
59b2e028
...
...
@@ -4,6 +4,11 @@
<multi_property
id=
'category'
>
group/company
</multi_property>
<multi_property
id=
'base_category'
>
group
</multi_property>
</role>
<role
id=
'Auditor'
>
<property
id=
'title'
>
Member
</property>
<multi_property
id=
'category'
>
role/member
</multi_property>
<multi_property
id=
'base_category'
>
role
</multi_property>
</role>
<role
id=
'Auditor'
>
<property
id=
'title'
>
Person Shadow
</property>
<multi_property
id=
'category'
>
role/shadow/person
</multi_property>
...
...
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Currency.xml
View file @
59b2e028
...
...
@@ -4,6 +4,11 @@
<multi_property
id=
'category'
>
group/company
</multi_property>
<multi_property
id=
'base_category'
>
group
</multi_property>
</role>
<role
id=
'Auditor'
>
<property
id=
'title'
>
Member
</property>
<multi_property
id=
'category'
>
role/member
</multi_property>
<multi_property
id=
'base_category'
>
role
</multi_property>
</role>
<role
id=
'Auditor'
>
<property
id=
'title'
>
Person Shadow
</property>
<multi_property
id=
'category'
>
role/shadow/person
</multi_property>
...
...
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Sale%20Trade%20Condition%20Module.xml
View file @
59b2e028
...
...
@@ -4,4 +4,9 @@
<multi_property
id=
'category'
>
group/company
</multi_property>
<multi_property
id=
'base_category'
>
group
</multi_property>
</role>
<role
id=
'Auditor'
>
<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/slapos_erp5/PortalTypeRolesTemplateItem/Sale%20Trade%20Condition.xml
View file @
59b2e028
...
...
@@ -4,4 +4,9 @@
<multi_property
id=
'category'
>
group/company
</multi_property>
<multi_property
id=
'base_category'
>
group
</multi_property>
</role>
<role
id=
'Auditor'
>
<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/slapos_erp5/PortalTypeRolesTemplateItem/Service%20Module.xml
View file @
59b2e028
...
...
@@ -4,4 +4,9 @@
<multi_property
id=
'category'
>
group/company
</multi_property>
<multi_property
id=
'base_category'
>
group
</multi_property>
</role>
<role
id=
'Auditor'
>
<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/slapos_erp5/PortalTypeRolesTemplateItem/Service.xml
View file @
59b2e028
...
...
@@ -4,4 +4,9 @@
<multi_property
id=
'category'
>
group/company
</multi_property>
<multi_property
id=
'base_category'
>
group
</multi_property>
</role>
<role
id=
'Auditor'
>
<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/slapos_erp5/TestTemplateItem/testSlapOSERP5GroupRoleSecurity.py
View file @
59b2e028
...
...
@@ -833,9 +833,10 @@ class TestAccountingTransactionModule(TestSlapOSGroupRoleSecurityMixin):
def
test
(
self
):
module
=
self
.
portal
.
accounting_module
self
.
assertSecurityGroup
(
module
,
[
'G-COMPANY'
,
'zope'
,
'R-SHADOW-PERSON'
],
True
)
[
'G-COMPANY'
,
'zope'
,
'R-SHADOW-PERSON'
,
'R-MEMBER'
],
True
)
self
.
assertRoles
(
module
,
'G-COMPANY'
,
[
'Auditor'
,
'Author'
])
self
.
assertRoles
(
module
,
'R-SHADOW-PERSON'
,
[
'Auditor'
])
self
.
assertRoles
(
module
,
'R-MEMBER'
,
[
'Auditor'
])
self
.
assertRoles
(
module
,
'zope'
,
[
'Owner'
])
class
TestAccountingTransaction
(
TestSlapOSGroupRoleSecurityMixin
):
...
...
@@ -925,8 +926,9 @@ class TestServiceModule(TestSlapOSGroupRoleSecurityMixin):
def
test
(
self
):
module
=
self
.
portal
.
service_module
self
.
assertSecurityGroup
(
module
,
[
'G-COMPANY'
,
'admin'
],
True
)
[
'G-COMPANY'
,
'admin'
,
'R-MEMBER'
],
True
)
self
.
assertRoles
(
module
,
'G-COMPANY'
,
[
'Auditor'
,
'Author'
])
self
.
assertRoles
(
module
,
'R-MEMBER'
,
[
'Auditor'
])
self
.
assertRoles
(
module
,
'admin'
,
[
'Owner'
])
class
TestService
(
TestSlapOSGroupRoleSecurityMixin
):
...
...
@@ -935,17 +937,19 @@ class TestService(TestSlapOSGroupRoleSecurityMixin):
portal_type
=
'Service'
)
product
.
updateLocalRolesOnSecurityGroups
()
self
.
assertSecurityGroup
(
product
,
[
'G-COMPANY'
,
self
.
user_id
],
False
)
[
'G-COMPANY'
,
self
.
user_id
,
'R-MEMBER'
],
False
)
self
.
assertRoles
(
product
,
'G-COMPANY'
,
[
'Assignor'
])
self
.
assertRoles
(
product
,
'R-MEMBER'
,
[
'Auditor'
])
self
.
assertRoles
(
product
,
self
.
user_id
,
[
'Owner'
])
class
TestAccountModule
(
TestSlapOSGroupRoleSecurityMixin
):
def
test
(
self
):
module
=
self
.
portal
.
account_module
self
.
assertSecurityGroup
(
module
,
[
'G-COMPANY'
,
'zope'
,
'R-SHADOW-PERSON'
],
False
)
[
'G-COMPANY'
,
'zope'
,
'R-SHADOW-PERSON'
,
'R-MEMBER'
],
False
)
self
.
assertRoles
(
module
,
'G-COMPANY'
,
[
'Auditor'
,
'Author'
])
self
.
assertRoles
(
module
,
'R-SHADOW-PERSON'
,
[
'Auditor'
])
self
.
assertRoles
(
module
,
'R-MEMBER'
,
[
'Auditor'
])
self
.
assertRoles
(
module
,
'zope'
,
[
'Owner'
])
class
TestAccount
(
TestSlapOSGroupRoleSecurityMixin
):
...
...
@@ -954,18 +958,20 @@ class TestAccount(TestSlapOSGroupRoleSecurityMixin):
portal_type
=
'Account'
)
product
.
updateLocalRolesOnSecurityGroups
()
self
.
assertSecurityGroup
(
product
,
[
'G-COMPANY'
,
self
.
user_id
,
'R-SHADOW-PERSON'
],
False
)
[
'G-COMPANY'
,
self
.
user_id
,
'R-SHADOW-PERSON'
,
'R-MEMBER'
],
False
)
self
.
assertRoles
(
product
,
'G-COMPANY'
,
[
'Assignor'
])
self
.
assertRoles
(
product
,
'R-SHADOW-PERSON'
,
[
'Auditor'
])
self
.
assertRoles
(
product
,
'R-MEMBER'
,
[
'Auditor'
])
self
.
assertRoles
(
product
,
self
.
user_id
,
[
'Owner'
])
class
TestCurrencyModule
(
TestSlapOSGroupRoleSecurityMixin
):
def
test
(
self
):
module
=
self
.
portal
.
currency_module
self
.
assertSecurityGroup
(
module
,
[
'G-COMPANY'
,
'admin'
,
'R-SHADOW-PERSON'
],
True
)
[
'G-COMPANY'
,
'admin'
,
'R-SHADOW-PERSON'
,
'R-MEMBER'
],
True
)
self
.
assertRoles
(
module
,
'G-COMPANY'
,
[
'Auditor'
,
'Author'
])
self
.
assertRoles
(
module
,
'R-SHADOW-PERSON'
,
[
'Auditor'
])
self
.
assertRoles
(
module
,
'R-MEMBER'
,
[
'Auditor'
])
self
.
assertRoles
(
module
,
'admin'
,
[
'Owner'
])
class
TestCurrency
(
TestSlapOSGroupRoleSecurityMixin
):
...
...
@@ -974,17 +980,19 @@ class TestCurrency(TestSlapOSGroupRoleSecurityMixin):
portal_type
=
'Currency'
)
product
.
updateLocalRolesOnSecurityGroups
()
self
.
assertSecurityGroup
(
product
,
[
'G-COMPANY'
,
self
.
user_id
,
'R-SHADOW-PERSON'
],
False
)
[
'G-COMPANY'
,
self
.
user_id
,
'R-SHADOW-PERSON'
,
'R-MEMBER'
],
False
)
self
.
assertRoles
(
product
,
'G-COMPANY'
,
[
'Assignor'
])
self
.
assertRoles
(
product
,
'R-SHADOW-PERSON'
,
[
'Auditor'
])
self
.
assertRoles
(
product
,
'R-MEMBER'
,
[
'Auditor'
])
self
.
assertRoles
(
product
,
self
.
user_id
,
[
'Owner'
])
class
TestSaleTradeConditionModule
(
TestSlapOSGroupRoleSecurityMixin
):
def
test
(
self
):
module
=
self
.
portal
.
sale_trade_condition_module
self
.
assertSecurityGroup
(
module
,
[
'G-COMPANY'
,
'zope'
],
False
)
[
'G-COMPANY'
,
'zope'
,
'R-MEMBER'
],
False
)
self
.
assertRoles
(
module
,
'G-COMPANY'
,
[
'Auditor'
,
'Author'
])
self
.
assertRoles
(
module
,
'R-MEMBER'
,
[
'Auditor'
])
self
.
assertRoles
(
module
,
'zope'
,
[
'Owner'
])
class
TestSaleTradeCondition
(
TestSlapOSGroupRoleSecurityMixin
):
...
...
@@ -993,8 +1001,9 @@ class TestSaleTradeCondition(TestSlapOSGroupRoleSecurityMixin):
portal_type
=
'Sale Trade Condition'
)
product
.
updateLocalRolesOnSecurityGroups
()
self
.
assertSecurityGroup
(
product
,
[
'G-COMPANY'
,
self
.
user_id
],
False
)
[
'G-COMPANY'
,
self
.
user_id
,
'R-MEMBER'
],
False
)
self
.
assertRoles
(
product
,
'G-COMPANY'
,
[
'Assignor'
])
self
.
assertRoles
(
product
,
'R-MEMBER'
,
[
'Auditor'
])
self
.
assertRoles
(
product
,
self
.
user_id
,
[
'Owner'
])
class
TestAccountingPeriod
(
TestSlapOSGroupRoleSecurityMixin
):
...
...
@@ -1509,3 +1518,23 @@ class TestSecurePaymentTool(TestSlapOSGroupRoleSecurityMixin):
self
.
assertPermissionsOfRole
(
tool
,
'Reviewer'
,
[])
self
.
assertAcquiredPermissions
(
tool
,
[
'Add SlapOS Tools'
,
'Add Vifib Tools'
])
class
TestBusinessProcessModule
(
TestSlapOSGroupRoleSecurityMixin
):
def
test
(
self
):
module
=
self
.
portal
.
business_process_module
self
.
assertSecurityGroup
(
module
,
[
'G-COMPANY'
,
'zope'
,
'R-MEMBER'
],
False
)
self
.
assertRoles
(
module
,
'G-COMPANY'
,
[
'Auditor'
])
self
.
assertRoles
(
module
,
'R-MEMBER'
,
[
'Auditor'
])
self
.
assertRoles
(
module
,
'zope'
,
[
'Owner'
])
class
TestBusinessProcess
(
TestSlapOSGroupRoleSecurityMixin
):
def
test_GroupCompany
(
self
):
product
=
self
.
portal
.
business_process_module
.
newContent
(
portal_type
=
'Business Process'
)
product
.
updateLocalRolesOnSecurityGroups
()
self
.
assertSecurityGroup
(
product
,
[
'G-COMPANY'
,
self
.
user_id
,
'R-MEMBER'
],
False
)
self
.
assertRoles
(
product
,
'G-COMPANY'
,
[
'Auditor'
])
self
.
assertRoles
(
product
,
'R-MEMBER'
,
[
'Auditor'
])
self
.
assertRoles
(
product
,
self
.
user_id
,
[
'Owner'
])
master/bt5/slapos_erp5/bt/revision
View file @
59b2e028
152
\ No newline at end of file
153
\ No newline at end of file
master/bt5/slapos_erp5/bt/template_local_role_list
View file @
59b2e028
...
...
@@ -13,6 +13,8 @@ account_module/sales
accounting_module
business_process_module
business_process_module/slapos_aggregated_business_process
business_process_module/slapos_consumption_business_process
business_process_module/slapos_subscription_business_process
campaign_module
component_module
computer_model_module
...
...
master/bt5/slapos_erp5/bt/template_local_roles_list
View file @
59b2e028
...
...
@@ -13,6 +13,8 @@ account_module/sales
accounting_module
business_process_module
business_process_module/slapos_aggregated_business_process
business_process_module/slapos_consumption_business_process
business_process_module/slapos_subscription_business_process
campaign_module
component_module
computer_model_module
...
...
master/bt5/slapos_erp5/bt/template_portal_type_role_list
View file @
59b2e028
...
...
@@ -7,6 +7,8 @@ Acknowledgement
Assignment
Balance Transaction
Bank Account
Business Process
Business Process Module
Campaign
Campaign Module
Cash Register
...
...
master/bt5/slapos_erp5/bt/template_portal_type_roles_list
View file @
59b2e028
...
...
@@ -7,6 +7,8 @@ Acknowledgement
Assignment
Balance Transaction
Bank Account
Business Process
Business Process Module
Campaign
Campaign Module
Cash Register
...
...
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