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
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Cédric Le Ninivin
erp5
Commits
1360974c
Commit
1360974c
authored
Jul 19, 2017
by
Cédric Le Ninivin
Committed by
Cédric Le Ninivin
Jul 19, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_xhtml_style: Add support for object_action_jio
parent
a044d84c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_fixDialogActions.py
...em/portal_skins/erp5_xhtml_style/Base_fixDialogActions.py
+3
-0
product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/context_box_render.zpt
...Item/portal_skins/erp5_xhtml_style/context_box_render.zpt
+1
-1
No files found.
product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_fixDialogActions.py
View file @
1360974c
...
@@ -7,6 +7,9 @@ if dialog_category == 'object_report':
...
@@ -7,6 +7,9 @@ if dialog_category == 'object_report':
return
sorted
(
actions
.
get
(
'object_report'
,
[])
+
actions
.
get
(
'object_report_jio'
,
[]),
key
=
lambda
x
:
x
[
"priority"
])
return
sorted
(
actions
.
get
(
'object_report'
,
[])
+
actions
.
get
(
'object_report_jio'
,
[]),
key
=
lambda
x
:
x
[
"priority"
])
elif
dialog_category
==
'object_exchange'
:
elif
dialog_category
==
'object_exchange'
:
return
sorted
(
actions
.
get
(
'object_exchange'
,
[])
+
actions
.
get
(
'object_exchange_jio'
,
[]),
key
=
lambda
x
:
x
[
"priority"
])
return
sorted
(
actions
.
get
(
'object_exchange'
,
[])
+
actions
.
get
(
'object_exchange_jio'
,
[]),
key
=
lambda
x
:
x
[
"priority"
])
elif
dialog_category
==
'object_action'
:
context
.
log
(
actions
.
get
(
'object_action'
,
[]))
return
sorted
(
actions
.
get
(
'object_action'
,
[])
+
actions
.
get
(
'object_action_jio'
,
[]),
key
=
lambda
x
:
x
[
"priority"
])
if
dialog_category
!=
'object_print'
:
if
dialog_category
!=
'object_print'
:
return
actions
.
get
(
dialog_category
,
[])
return
actions
.
get
(
dialog_category
,
[])
...
...
product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/context_box_render.zpt
View file @
1360974c
...
@@ -63,7 +63,7 @@
...
@@ -63,7 +63,7 @@
i18n:translate="" i18n:domain="ui" />
i18n:translate="" i18n:domain="ui" />
</tal:block>
</tal:block>
<option disabled="disabled">-- <tal:block i18n:translate="" i18n:domain="ui">Object</tal:block> --</option>
<option disabled="disabled">-- <tal:block i18n:translate="" i18n:domain="ui">Object</tal:block> --</option>
<tal:block tal:repeat="action
actions/object_action | nothing
">
<tal:block tal:repeat="action
python:here.Base_fixDialogActions(actions, 'object_action') or []
">
<option tal:content="action/name"
<option tal:content="action/name"
tal:attributes="value string:object ${action/url}"
tal:attributes="value string:object ${action/url}"
i18n:translate="" i18n:domain="ui" />
i18n:translate="" i18n:domain="ui" />
...
...
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