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
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
Sven Franck
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
Show 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,8 +2378,6 @@ class ListBoxHTMLRendererLine(ListBoxRendererLine):
...
@@ -2378,8 +2378,6 @@ class ListBoxHTMLRendererLine(ListBoxRendererLine):
# If a field is editable, generate an input form.
# If a field is editable, generate an input form.
# XXX why don't we generate an input form when a widget is not defined?
# 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
# Prepare link value - we now use it for both static and field rendering
...
@@ -2488,7 +2486,8 @@ class ListBoxHTMLRendererLine(ListBoxRendererLine):
...
@@ -2488,7 +2486,8 @@ class ListBoxHTMLRendererLine(ListBoxRendererLine):
value
=
display_value
,
value
=
display_value
,
REQUEST
=
request
,
REQUEST
=
request
,
key
=
key
,
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
):
if
isinstance
(
cell_html
,
str
):
cell_html
=
unicode
(
cell_html
,
encoding
)
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