[FIX] model: The user install / update / test is different from the normal mode (no prefetch in test mode) some errors are hidden.

This commit is contained in:
Christophe Matthieu 2014-07-17 10:48:53 +02:00 committed by Olivier Dony
parent d35d47165e
commit 82a1ea0935
1 changed files with 1 additions and 4 deletions

View File

@ -3107,10 +3107,7 @@ class BaseModel(object):
# by default, simply fetch field
fnames = {field.name}
if self.pool._init:
# columns may be missing from database, do not prefetch other fields
pass
elif self.env.in_draft:
if self.env.in_draft:
# we may be doing an onchange, do not prefetch other fields
pass
elif field in self.env.todo: