Commit 84aa94c5 authored by Georgios Dagkakis's avatar Georgios Dagkakis

erp5_ods_style: Correctly recognise fields related to listbox columns that contain '.'

since for column like 'delivery.start_date'
the field would be like 'listbox_delivery_start_date'
parent c9c2bd8b
......@@ -25,7 +25,9 @@ def getEditableField(alias):
field = field.getTemplateField().aq_inner
for column, _ in editable_columns:
field = getEditableField(column)
# replace '.' with '_' since for column like 'delivery.start_date'
# the field would be like 'listbox_delivery_start_date'
field = getEditableField(column.replace('.', '_'))
if field is not None:
editable_fields[column] = field
......
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