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
Eugene Shen
erp5
Commits
a85acf0c
Commit
a85acf0c
authored
Aug 13, 2014
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Form: fix inheritance of editable fields for listboxes whose id != 'listbox'
parent
36162477
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
16 deletions
+8
-16
product/ERP5Form/ListBox.py
product/ERP5Form/ListBox.py
+8
-16
No files found.
product/ERP5Form/ListBox.py
View file @
a85acf0c
...
@@ -1306,25 +1306,17 @@ class ListBoxRenderer:
...
@@ -1306,25 +1306,17 @@ class ListBoxRenderer:
"""Get an editable field for column, using column alias.
"""Get an editable field for column, using column alias.
Return None if a field for this column does not exist.
Return None if a field for this column does not exist.
"""
"""
form
=
self
.
getForm
()
editable_field_id
=
'%s_%s'
%
(
self
.
getUnprefixedId
(),
alias
)
field
=
self
.
field
field
=
self
.
field
while
form
is
not
None
:
while
True
:
#Search the editable field in the form
try
:
if
form
.
has_field
(
editable_field_id
,
include_disabled
=
1
):
return
field
.
aq_parent
.
get_field
(
"%s_%s"
%
(
field
.
id
,
alias
),
return
form
.
get_field
(
editable_field_id
,
include_disabled
=
1
)
include_disabled
=
1
)
elif
field
.
meta_type
==
'ProxyField'
:
except
AttributeError
:
if
field
is
None
or
field
.
meta_type
!=
'ProxyField'
:
break
# if we are rendering a proxy field, also look for editable
# if we are rendering a proxy field, also look for editable
# fields from the template field's form.
# fields from the template field's form.
field
=
field
.
getTemplateField
()
field
=
aq_inner
(
field
.
getTemplateField
())
if
field
is
None
:
form
=
None
else
:
form
=
aq_inner
(
field
).
aq_parent
else
:
form
=
None
return
None
def
getListMethod
(
self
):
def
getListMethod
(
self
):
"""Return the list method object.
"""Return the list method object.
...
...
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