[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:
parent
d35d47165e
commit
82a1ea0935
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue