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
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
Laurent S
erp5
Commits
ac01cf72
Commit
ac01cf72
authored
Feb 13, 2018
by
Xiaowu Zhang
Committed by
Ayush Tiwari
Mar 16, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Listbox: go to specific view if defined
parent
39dd4210
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
product/ERP5Form/ListBox.py
product/ERP5Form/ListBox.py
+3
-1
No files found.
product/ERP5Form/ListBox.py
View file @
ac01cf72
...
...
@@ -2338,7 +2338,7 @@ class ListBoxHTMLRendererLine(ListBoxRendererLine):
result_dict
=
url_parameter_dict
[
sql
].
copy
()
for
key
in
result_dict
:
value
=
getattr
(
brain
,
result_dict
[
key
],
None
)
if
key
!=
'view'
:
if
key
not
in
(
'view'
,
'view_action'
)
:
if
callable
(
value
):
try
:
result_dict
[
key
]
=
value
(
selection
=
selection
,
selection_name
=
selection
.
getName
(),
column_id
=
sql
,
index
=
self
.
index
)
...
...
@@ -2349,6 +2349,8 @@ class ListBoxHTMLRendererLine(ListBoxRendererLine):
url
=
''
else
:
url
=
self
.
getObject
().
getPortalObject
().
restrictedTraverse
(
result_dict
[
'jio_key'
]).
absolute_url
()
if
'view_action'
in
result_dict
:
url
+=
result_dict
[
'view_action'
]
if
'parameter'
in
result_dict
:
url
=
'%s?%s'
%
(
url
,
make_query
(
result_dict
[
'parameter'
]))
...
...
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