From 8daffb9c3fbc6f054580257f0beb4b2c8ed00925 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 5 Jan 2009 14:09:34 +0100 Subject: [PATCH] Don't prefetch text and binary field in BrowseRecord --- trytond/osv/orm.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/trytond/osv/orm.py b/trytond/osv/orm.py index 071c3ba7ee..550d403754 100644 --- a/trytond/osv/orm.py +++ b/trytond/osv/orm.py @@ -126,7 +126,8 @@ class BrowseRecord(object): # if the field is a classic one or a many2one, # we'll fetch all classic and many2one fields - if col._classic_write and not col.translate: + if col._classic_write and not col.translate \ + and col._type not in ('text', 'binary'): # gen the list of "local" (ie not inherited) # fields which are classic or many2one ffields = [x for x in self._table._columns.items() \ @@ -137,7 +138,8 @@ class BrowseRecord(object): # complete the field list with the inherited fields # which are classic or many2one ffields += [x for x in inherits if x[1]._classic_write \ - and not x[1].translate] + and not x[1].translate \ + and x[1]._type not in ('text', 'binary')] # otherwise we fetch only that field else: ffields = [(name, col)]