[FIX] OPW 592482: browse_record should not prefetch binary fields
[odoo/odoo.git] / bin / osv / fields.py
index 652a481..964dda1 100644 (file)
@@ -774,6 +774,8 @@ class function(_column):
             self._classic_write = True
             if type=='binary':
                 self._symbol_get=lambda x:x and str(x)
+            else:
+                self._prefetch = True
 
         if type == 'float':
             self._symbol_c = float._symbol_c