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
Léo-Paul Géneau
erp5
Commits
467ae656
Commit
467ae656
authored
Nov 28, 2011
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Listbox: use editable field for rendering in report summary
Signed-off-by:
Aurélien Calonne
<
aurel@nexedi.com
>
parent
04258a4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
product/ERP5Form/ListBox.py
product/ERP5Form/ListBox.py
+3
-4
No files found.
product/ERP5Form/ListBox.py
View file @
467ae656
...
...
@@ -2378,9 +2378,7 @@ class ListBoxHTMLRendererLine(ListBoxRendererLine):
# If a field is editable, generate an input form.
# XXX why don't we generate an input form when a widget is not defined?
editable_field
=
None
if
not
self
.
isSummary
():
editable_field
=
renderer
.
getEditableField
(
alias
)
editable_field
=
renderer
.
getEditableField
(
alias
)
# Prepare link value - we now use it for both static and field rendering
no_link
=
self
.
isSummary
()
...
...
@@ -2488,7 +2486,8 @@ class ListBoxHTMLRendererLine(ListBoxRendererLine):
value
=
display_value
,
REQUEST
=
request
,
key
=
key
,
editable
=
listbox_defines_column_as_editable
and
editable
,
editable
=
(
not
self
.
isSummary
())
\
and
listbox_defines_column_as_editable
and
editable
,
)
if
isinstance
(
cell_html
,
str
):
cell_html
=
unicode
(
cell_html
,
encoding
)
...
...
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