[IMP] models: move prefetching of records back to method _prefetch_field
authorRaphael Collet <rco@openerp.com>
Tue, 19 Aug 2014 13:45:18 +0000 (15:45 +0200)
committerRaphael Collet <rco@openerp.com>
Fri, 22 Aug 2014 12:42:20 +0000 (14:42 +0200)
commit97256fa1fba6c7d3d02962b5948158d17852cf43
treedc5edd7f61c5007e619f5dd3937622d31b6786e5
parent78a9a6fcaa00d5edb7d61d8c61d0a573b9aa07d2
[IMP] models: move prefetching of records back to method _prefetch_field

The selection of records in cache for prefetching was moved to method
_read_from_database() by xmo at rev 785018cc in order to fix an access right
bug.  But this introduced an issue: to explicitly avoid prefetching, you should
use read() instead of browsing records.  We revert the change by xmo, without
reintroducing the bug (which apparently was fixed by another way).
addons/calendar/calendar.py
openerp/models.py