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
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
b1dcfe05
Commit
b1dcfe05
authored
Jun 25, 2024
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Form/ProxyField: do not crash if the proxy_form is not an ERP5 Form
parent
0df6386e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
product/ERP5Form/ProxyField.py
product/ERP5Form/ProxyField.py
+3
-1
No files found.
product/ERP5Form/ProxyField.py
View file @
b1dcfe05
...
...
@@ -432,7 +432,9 @@ 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'
)
proxy_field
=
proxy_form
.
_getOb
(
field_id
,
None
)
if
proxy_field
is
None
:
...
...
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