[FIX] models: unexpected missing value when checking for a field in cache
authorRaphael Collet <rco@openerp.com>
Mon, 18 Aug 2014 09:50:24 +0000 (11:50 +0200)
committerRaphael Collet <rco@openerp.com>
Tue, 19 Aug 2014 09:50:42 +0000 (11:50 +0200)
commit62b0d99cfe537e7f7f1e8794974230abbcdbfe44
tree712bf489d93a38dc991e4ccfa83ee0010032e6e3
parentc1be4a316e0ef6d06a7262261620dfb5b86c9222
[FIX] models: unexpected missing value when checking for a field in cache

At the end of _prefetch_field(), a check is made to ensure that the cache
contains something for the field to prefetch. The check was incorrect because
the cache was checked for a regular value only.
openerp/models.py