Commit 62717da4 authored by Sebastien Robin's avatar Sebastien Robin

erp5_core: tiny code improvement, reuse existing condition

parent 93ee36c3
...@@ -128,9 +128,8 @@ def checkField(folder, form, field):\n ...@@ -128,9 +128,8 @@ def checkField(folder, form, field):\n
if field.get_value(\'enabled\'):\n if field.get_value(\'enabled\'):\n
error_message += "Could not get a field from a proxy field %s" % field.id\n error_message += "Could not get a field from a proxy field %s" % field.id\n
else:\n else:\n
if template_field.meta_type == \'ListBox\':\n
a = template_field.getListMethodName()\n
if isListBox(field):\n if isListBox(field):\n
a = template_field.getListMethodName()\n
path += \'/listbox\'\n path += \'/listbox\'\n
for x in \'columns\', \'all_columns\':\n for x in \'columns\', \'all_columns\':\n
for id, title in field.get_value(x):\n for id, title in field.get_value(x):\n
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment