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
8394ed90
Commit
8394ed90
authored
Jun 25, 2024
by
Romain Courteaud
🐙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Form/ProxyField: do not fail if the proxy_form is not an ERP5Form
parent
5c2473d6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
product/ERP5Form/ProxyField.py
product/ERP5Form/ProxyField.py
+6
-1
No files found.
product/ERP5Form/ProxyField.py
View file @
8394ed90
...
...
@@ -434,7 +434,12 @@ class ProxyField(ZMIField):
if
(
proxy_form
is
not
None
):
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
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