diff --git a/product/ERP5Form/ListBox.py b/product/ERP5Form/ListBox.py
index 5c7698b6ec50620508484cc1de86cd53dade35ff..28c85d94d3c551d937b223eacb594a5354d543a7 100644
--- a/product/ERP5Form/ListBox.py
+++ b/product/ERP5Form/ListBox.py
@@ -2287,7 +2287,6 @@ class ListBoxHTMLRendererLine(ListBoxRendererLine):
       if editable_field is not None and sql in editable_column_id_set:
         # XXX what if the object does not have uid?
         key = '%s_%s' % (editable_field.getId(), self.getUid())
-        widget_key = editable_field.generate_field_key(key=key)
         if has_error: # If there is any error on listbox, we should use what the user has typed
           display_value = None
         else: