Don't load inherited field if it is overloaded on the current object

This commit is contained in:
Bertrand Chenal committed 2009-05-26 19:46:00 +02:00
1 parent 99941d2c77
commit a2fe2f402e
1 file changed
+1
+1
View File
@@ -97,6 +97,7 @@ class BrowseRecord(object):
# complete the field list with the inherited fields
ffields += [x for x in inherits if not hasattr(x[1], 'get') \
and x[0] not in self._data[self._id] \
and x[0] not in self._model._columns \
and ((not x[1].translate \
and x[1]._type not in ('text', 'binary')) \
or x[0] == name)]