[FIX] fields: avoid prefetching of one2many fields
authorMartin Trigaux <mat@openerp.com>
Mon, 1 Sep 2014 14:28:56 +0000 (16:28 +0200)
committerMartin Trigaux <mat@openerp.com>
Tue, 2 Sep 2014 11:34:57 +0000 (13:34 +0200)
commit4a1029582390164a74cf3594662dc61d8562aedf
tree177d71fbe58818c960922a43a8c5cc29039125ea
parenteab52acccd05945f69b5b3a0100c7dda074d87cc
[FIX] fields: avoid prefetching of one2many fields

When reading a one2many field, the inverse mapping of the lines (matching m2o -> lines of corresponding record) was instantiating each line and then triggering the prefect of fields.
To improve the performances, the inverse mapping is done in sql to avoid triggering the prefetching.
openerp/osv/fields.py