Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
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
Hamza
erp5-Boxiang
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
Show 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:
"""Get an editable field for column, using column alias.
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
while
form
is
not
None
:
#Search the editable field in the form
if
form
.
has_field
(
editable_field_id
,
include_disabled
=
1
):
return
form
.
get_field
(
editable_field_id
,
include_disabled
=
1
)
elif
field
.
meta_type
==
'ProxyField'
:
while
True
:
try
:
return
field
.
aq_parent
.
get_field
(
"%s_%s"
%
(
field
.
id
,
alias
),
include_disabled
=
1
)
except
AttributeError
:
if
field
is
None
or
field
.
meta_type
!=
'ProxyField'
:
break
# if we are rendering a proxy field, also look for editable
# fields from the template field's form.
field
=
field
.
getTemplateField
()
if
field
is
None
:
form
=
None
else
:
form
=
aq_inner
(
field
).
aq_parent
else
:
form
=
None
return
None
field
=
aq_inner
(
field
.
getTemplateField
())
def
getListMethod
(
self
):
"""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