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
b52f1520
Commit
b52f1520
authored
Oct 20, 2023
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_erp5: give read access to sale packing list to accountant and sale people
parent
31051fe0
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
127 deletions
+22
-127
master/bt5/slapos_erp5/LocalRolesTemplateItem/sale_packing_list_module.xml
..._erp5/LocalRolesTemplateItem/sale_packing_list_module.xml
+5
-9
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Sale%20Packing%20List%20Module.xml
...lTypeRolesTemplateItem/Sale%20Packing%20List%20Module.xml
+9
-9
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Sale%20Packing%20List.xml
...rp5/PortalTypeRolesTemplateItem/Sale%20Packing%20List.xml
+8
-10
master/bt5/slapos_erp5/TestTemplateItem/portal_components/test.erp5.testSlapOSERP5LocalPermissionSlapOSInteractionWorkflow.py
...testSlapOSERP5LocalPermissionSlapOSInteractionWorkflow.py
+0
-30
master/bt5/slapos_erp5/WorkflowTemplateItem/portal_workflow/local_permission_slapos_interaction_workflow/interaction_SalePackingList_edit.xml
...interaction_workflow/interaction_SalePackingList_edit.xml
+0
-69
No files found.
master/bt5/slapos_erp5/LocalRolesTemplateItem/sale_packing_list_module.xml
View file @
b52f1520
<local_roles_item>
<local_roles_item>
<local_roles>
<local_roles>
<role
id=
'
G-COMPANY
'
>
<role
id=
'
F-ACCOUNTING*
'
>
<item>
Auditor
</item>
<item>
Auditor
</item>
<item>
Author
</item>
</role>
</role>
<role
id=
'
R-MEMBER
'
>
<role
id=
'
F-SALE*
'
>
<item>
Auditor
</item>
<item>
Auditor
</item>
</role>
</role>
</local_roles>
</local_roles>
<local_role_group_ids>
<local_role_group_ids>
<local_role_group_id
id=
'group'
>
<local_role_group_id
id=
'function'
>
<principal
id=
'G-COMPANY'
>
Auditor
</principal>
<principal
id=
'F-ACCOUNTING*'
>
Auditor
</principal>
<principal
id=
'G-COMPANY'
>
Author
</principal>
<principal
id=
'F-SALE*'
>
Auditor
</principal>
</local_role_group_id>
<local_role_group_id
id=
'user'
>
<principal
id=
'R-MEMBER'
>
Auditor
</principal>
</local_role_group_id>
</local_role_group_id>
</local_role_group_ids>
</local_role_group_ids>
</local_roles_item>
</local_roles_item>
\ No newline at end of file
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Sale%20Packing%20List%20Module.xml
View file @
b52f1520
<type_roles>
<type_roles>
<role
id=
'Au
thor; Au
ditor'
>
<role
id=
'Auditor'
>
<property
id=
'title'
>
Group company
</property>
<property
id=
'title'
>
Accountant
</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*
</multi_property>
<multi_property
id=
'base_category'
>
group
</multi_property>
<multi_property
id=
'base_category'
>
function
</multi_property>
</role>
</role>
<role
id=
'Auditor'
>
<role
id=
'Auditor'
>
<property
id=
'title'
>
Member
</property>
<property
id=
'title'
>
Sale
</property>
<multi_property
id=
'categories'
>
local_role_group/
user
</multi_property>
<multi_property
id=
'categories'
>
local_role_group/
function
</multi_property>
<multi_property
id=
'category'
>
role/member
</multi_property>
<multi_property
id=
'category'
>
function/sale*
</multi_property>
<multi_property
id=
'base_category'
>
role
</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/PortalTypeRolesTemplateItem/Sale%20Packing%20List.xml
View file @
b52f1520
<type_roles>
<type_roles>
<role
id=
'Auditor'
>
<role
id=
'Auditor'
>
<property
id=
'title'
>
Group company
</property>
<property
id=
'title'
>
Accountant
</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*
</multi_property>
<multi_property
id=
'base_category'
>
group
</multi_property>
<multi_property
id=
'base_category'
>
function
</multi_property>
</role>
</role>
<role
id=
'Auditor'
>
<role
id=
'Auditor'
>
<property
id=
'title'
>
Subscription Customer
</property>
<property
id=
'title'
>
Sale
</property>
<property
id=
'description'
>
python: here.Base_useSaleTradeConditionReference(('slapos_subscription_trade_condition', 'slapos_aggregated_trade_condition', 'slapos_aggregated_subscription_trade_condition'))
</property>
<multi_property
id=
'categories'
>
local_role_group/function
</multi_property>
<property
id=
'condition'
>
python: False
</property>
<multi_property
id=
'category'
>
function/sale*
</multi_property>
<property
id=
'base_category_script'
>
ERP5Type_getSecurityCategoryFromContent
</property>
<multi_property
id=
'base_category'
>
function
</multi_property>
<multi_property
id=
'categories'
>
local_role_group/user
</multi_property>
<multi_property
id=
'base_category'
>
destination_decision
</multi_property>
</role>
</role>
</type_roles>
</type_roles>
\ No newline at end of file
master/bt5/slapos_erp5/TestTemplateItem/portal_components/test.erp5.testSlapOSERP5LocalPermissionSlapOSInteractionWorkflow.py
View file @
b52f1520
...
@@ -110,36 +110,6 @@ class TestSlapOSLocalPermissionSlapOSInteractionWorkflow(
...
@@ -110,36 +110,6 @@ class TestSlapOSLocalPermissionSlapOSInteractionWorkflow(
integration_site
.
workflow_history
[
'edit_workflow'
][
-
1
][
'comment'
])
integration_site
.
workflow_history
[
'edit_workflow'
][
-
1
][
'comment'
])
def
test_SalePackingList_setSpecialise
(
self
):
self
.
_makePerson
()
sale_packing_list
=
self
.
portal
.
sale_packing_list_module
.
newContent
(
destination_decision_value
=
self
.
person_user
,
portal_type
=
'Sale Packing List'
)
self
.
assertSecurityGroup
(
sale_packing_list
,
[
'G-COMPANY'
,
self
.
user_id
],
False
)
sale_packing_list
.
edit
(
specialise
=
"sale_trade_condition_module/slapos_subscription_trade_condition"
)
self
.
commit
()
self
.
assertSecurityGroup
(
sale_packing_list
,
[
'G-COMPANY'
,
self
.
user_id
,
self
.
person_user_id
],
False
)
def
test_SalePackingList_setDestinationDecision
(
self
):
self
.
_makePerson
()
sale_packing_list
=
self
.
portal
.
sale_packing_list_module
.
newContent
(
specialise
=
"sale_trade_condition_module/slapos_subscription_trade_condition"
,
portal_type
=
'Sale Packing List'
)
self
.
assertSecurityGroup
(
sale_packing_list
,
[
'G-COMPANY'
,
self
.
user_id
],
False
)
sale_packing_list
.
edit
(
destination_decision_value
=
self
.
person_user
)
self
.
commit
()
self
.
assertSecurityGroup
(
sale_packing_list
,
[
'G-COMPANY'
,
self
.
user_id
,
self
.
person_user_id
],
False
)
def
test_RestrictedAccessToken_setAgent
(
self
):
def
test_RestrictedAccessToken_setAgent
(
self
):
self
.
_makePerson
()
self
.
_makePerson
()
token
=
self
.
portal
.
access_token_module
.
newContent
(
token
=
self
.
portal
.
access_token_module
.
newContent
(
...
...
master/bt5/slapos_erp5/WorkflowTemplateItem/portal_workflow/local_permission_slapos_interaction_workflow/interaction_SalePackingList_edit.xml
deleted
100644 → 0
View file @
31051fe0
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Interaction Workflow Interaction"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
after_script/portal_workflow/local_permission_slapos_interaction_workflow/script_Base_updateAllLocalRoles
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
interaction_SalePackingList_edit
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Interaction Workflow Interaction
</string>
</value>
</item>
<item>
<key>
<string>
portal_type_filter
</string>
</key>
<value>
<tuple>
<string>
Sale Packing List
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
portal_type_group_filter
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
temporary_document_disallowed
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
<item>
<key>
<string>
trigger_method_id
</string>
</key>
<value>
<tuple>
<string>
_setDestinationDecision.*
</string>
<string>
_setSpecialise.*
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
trigger_once_per_transaction
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
trigger_type
</string>
</key>
<value>
<int>
2
</int>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
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