Fix D&D as field is defined on group no more on record

This commit is contained in:
Cédric Krier committed 2010-12-02 22:41:30 +01:00
1 parent a381799a1d
commit abef529665
1 file changed
+2 -1
+2 -1
View File
@@ -368,8 +368,9 @@ class ViewList(ParserView):
info, etime):
treeview.emit_stop_by_name('drag-data-received')
if treeview.sequence:
field = self.screen.group.fields[treeview.sequence]
for record in self.screen.group:
if record[treeview.sequence].get_state_attrs(
if field.get_state_attrs(
record).get('readonly', False):
return
if not selection.data: