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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
dd33d63e
Commit
dd33d63e
authored
Jun 25, 2024
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ProxyField: explicitely check if ERP5 Form
parent
fc65b11f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
product/ERP5Form/ProxyField.py
product/ERP5Form/ProxyField.py
+4
-7
No files found.
product/ERP5Form/ProxyField.py
View file @
dd33d63e
...
...
@@ -432,14 +432,11 @@ class ProxyField(ZMIField):
else
:
proxy_form
=
getattr
(
object
,
form_id
,
None
)
if
(
proxy_form
is
not
None
):
if
(
proxy_form
is
not
None
)
and
(
proxy_form
.
meta_type
==
'ERP5 Form'
):
# If the proxy_form is not an ERP5 Form, but a Page Template,
# accessing _getOb method fails
field_id
=
self
.
get_value
(
'field_id'
)
try
:
proxy_field
=
proxy_form
.
_getOb
(
field_id
,
None
)
except
AttributeError
:
# If the proxy_form is not an ERP5 Form, but a Page Template,
# accessing _getOb method fails
proxy_field
=
None
proxy_field
=
proxy_form
.
_getOb
(
field_id
,
None
)
if
proxy_field
is
None
:
if
form_id_with_skin_folder_name_flag
is
False
:
# Try to get the field from another field library with a lower
...
...
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