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
a16b2e3a
Commit
a16b2e3a
authored
Jun 14, 2022
by
Romain Courteaud
🐙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_erp5: drop Modification permissions if document uses an automated ledger
parent
8088a9ef
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
2 deletions
+9
-2
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Accounting%20Transaction.xml
.../PortalTypeRolesTemplateItem/Accounting%20Transaction.xml
+1
-0
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Balance%20Transaction.xml
...rp5/PortalTypeRolesTemplateItem/Balance%20Transaction.xml
+1
-0
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Open%20Sale%20Order.xml
..._erp5/PortalTypeRolesTemplateItem/Open%20Sale%20Order.xml
+1
-0
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Payment%20Transaction.xml
...rp5/PortalTypeRolesTemplateItem/Payment%20Transaction.xml
+2
-1
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Purchase%20Invoice%20Transaction.xml
...ypeRolesTemplateItem/Purchase%20Invoice%20Transaction.xml
+1
-0
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Sale%20Invoice%20Transaction.xml
...talTypeRolesTemplateItem/Sale%20Invoice%20Transaction.xml
+3
-1
No files found.
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Accounting%20Transaction.xml
View file @
a16b2e3a
<type_roles>
<role
id=
'Assignor'
>
<property
id=
'title'
>
Group company
</property>
<property
id=
'condition'
>
python: context.getLedger("") != "automated"
</property>
<multi_property
id=
'categories'
>
local_role_group/group
</multi_property>
<multi_property
id=
'category'
>
group/company
</multi_property>
<multi_property
id=
'base_category'
>
group
</multi_property>
...
...
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Balance%20Transaction.xml
View file @
a16b2e3a
<type_roles>
<role
id=
'Assignor'
>
<property
id=
'title'
>
Group company
</property>
<property
id=
'condition'
>
python: context.getLedger("") != "automated"
</property>
<multi_property
id=
'categories'
>
local_role_group/group
</multi_property>
<multi_property
id=
'category'
>
group/company
</multi_property>
<multi_property
id=
'base_category'
>
group
</multi_property>
...
...
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Open%20Sale%20Order.xml
View file @
a16b2e3a
<type_roles>
<role
id=
'Assignor'
>
<property
id=
'title'
>
Group company
</property>
<property
id=
'condition'
>
python: context.getLedger("") != "automated"
</property>
<multi_property
id=
'categories'
>
local_role_group/group
</multi_property>
<multi_property
id=
'category'
>
group/company
</multi_property>
<multi_property
id=
'base_category'
>
group
</multi_property>
...
...
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Payment%20Transaction.xml
View file @
a16b2e3a
<type_roles>
<role
id=
'Assignor'
>
<property
id=
'title'
>
Group company
</property>
<property
id=
'condition'
>
python: context.getLedger("") != "automated"
</property>
<multi_property
id=
'categories'
>
local_role_group/group
</multi_property>
<multi_property
id=
'category'
>
group/company
</multi_property>
<multi_property
id=
'base_category'
>
group
</multi_property>
...
...
@@ -21,7 +22,7 @@
</role>
<role
id=
'Auditor'
>
<property
id=
'title'
>
User
</property>
<property
id=
'condition'
>
python:
here.getDestinationSection('', portal_type='Person') != ''
</property>
<property
id=
'condition'
>
python:
(here.getDestinationSection('', portal_type='Person') != '') and (context.getLedger("") == "automated")
</property>
<property
id=
'base_category_script'
>
ERP5Type_getSecurityCategoryFromContent
</property>
<multi_property
id=
'categories'
>
local_role_group/user
</multi_property>
<multi_property
id=
'base_category'
>
destination_section
</multi_property>
...
...
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Purchase%20Invoice%20Transaction.xml
View file @
a16b2e3a
<type_roles>
<role
id=
'Assignor'
>
<property
id=
'title'
>
Group company
</property>
<property
id=
'condition'
>
python: context.getLedger("") != "automated"
</property>
<multi_property
id=
'categories'
>
local_role_group/group
</multi_property>
<multi_property
id=
'category'
>
group/company
</multi_property>
<multi_property
id=
'base_category'
>
group
</multi_property>
...
...
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Sale%20Invoice%20Transaction.xml
View file @
a16b2e3a
<type_roles>
<role
id=
'Assignor'
>
<property
id=
'title'
>
Group company
</property>
<property
id=
'condition'
>
python: context.getLedger("") != "automated"
</property>
<multi_property
id=
'categories'
>
local_role_group/group
</multi_property>
<multi_property
id=
'category'
>
group/company
</multi_property>
<multi_property
id=
'base_category'
>
group
</multi_property>
</role>
<role
id=
'Assignee'
>
<property
id=
'title'
>
Person Shadow
</property>
<property
id=
'condition'
>
python: context.getLedger("") == "automated"
</property>
<multi_property
id=
'categories'
>
local_role_group/shadow
</multi_property>
<multi_property
id=
'category'
>
role/shadow/person
</multi_property>
<multi_property
id=
'base_category'
>
role
</multi_property>
</role>
<role
id=
'Auditor'
>
<property
id=
'title'
>
User
</property>
<property
id=
'condition'
>
python:
here.getDestinationSection('', portal_type='Person') != ''
</property>
<property
id=
'condition'
>
python:
(here.getDestinationSection('', portal_type='Person') != '') and (context.getLedger("") == "automated")
</property>
<property
id=
'base_category_script'
>
ERP5Type_getSecurityCategoryFromContent
</property>
<multi_property
id=
'categories'
>
local_role_group/user
</multi_property>
<multi_property
id=
'base_category'
>
destination_section
</multi_property>
...
...
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