Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
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
Roque
erp5
Commits
404152ef
Commit
404152ef
authored
Jul 01, 2019
by
Roque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new category for custom actions and try catch in action handling
parent
1665d30d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
92 additions
and
4 deletions
+92
-4
product/ERP5/bootstrap/erp5_core/PathTemplateItem/portal_categories/action_type/object_jio_js_script.xml
...em/portal_categories/action_type/object_jio_js_script.xml
+85
-0
product/ERP5Type/Core/ActionInformation.py
product/ERP5Type/Core/ActionInformation.py
+7
-4
No files found.
product/ERP5/bootstrap/erp5_core/PathTemplateItem/portal_categories/action_type/object_jio_js_script.xml
0 → 100644
View file @
404152ef
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Category"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_Add_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Add_portal_folders_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Copy_or_Move_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Delete_objects_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Modify_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
action_type/object_jio_js_script
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
object_jio_js_script
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Category
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
object_jio_js_script
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
product/ERP5Type/Core/ActionInformation.py
View file @
404152ef
...
...
@@ -188,8 +188,11 @@ class CacheableAction(object):
def
cook
(
self
,
ec
):
param_dict
=
self
.
param_dict
.
copy
()
action
=
self
.
action
param_dict
[
'url'
]
=
action
is
not
None
and
action
(
ec
)
or
''
icon
=
self
.
icon
param_dict
[
'icon'
]
=
icon
is
not
None
and
icon
(
ec
)
or
''
try
:
action
=
self
.
action
param_dict
[
'url'
]
=
action
is
not
None
and
action
(
ec
)
or
''
icon
=
self
.
icon
param_dict
[
'icon'
]
=
icon
is
not
None
and
icon
(
ec
)
or
''
except
KeyError
:
pass
return
param_dict
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