[FIX] openerp/osv/fields: disable prefetching when reading inverse of one2many fields
authorRaphael Collet <rco@openerp.com>
Tue, 9 Sep 2014 13:23:52 +0000 (15:23 +0200)
committerRaphael Collet <rco@openerp.com>
Wed, 10 Sep 2014 07:41:36 +0000 (09:41 +0200)
commit742846400423484a1a752ea13f7fb8bf84ed4712
tree5ad25cb2b7f146d526085a1c5e405c45605e0040
parentbfb29230b78197aee98b694645787e6ee807418e
[FIX] openerp/osv/fields: disable prefetching when reading inverse of one2many fields

This fixes issue #2146.  The inverse of a one2many field can be an inherited
field (_inherits).  In that case, we cannot read its value with a simple
database query.  Instead, we let the related field read it, but for performance
considerations we disable the prefetching of other fields.
openerp/models.py
openerp/osv/fields.py