[FIX] "prefetching" removing even the records specifically asked for
authorXavier Morel <xmo@openerp.com>
Wed, 16 Jul 2014 14:22:34 +0000 (16:22 +0200)
committerXavier Morel <xmo@openerp.com>
Wed, 16 Jul 2014 14:29:24 +0000 (16:29 +0200)
commitb1f1596aef5e8968d22abb63f9e7bf8da72b009b
tree70910ab6412042d28ea3922a4a21833430d8f0f0
parentfd0c52550af8b84301fcf10717a37115714880e6
[FIX] "prefetching" removing even the records specifically asked for

16d6744 turns out to not be great, because it filters out the todos for
prefetched fields (rather than those just for the field being asked) there are
situations where it ends up not fetching the records it was originally asked
for and breaks a bunch of stuff e.g. unreconcile line in bank statements

Force the ids explicitly asked for back in the fetched set, so that the
prefetch is at most a noop, rco will have to take an actual look at it.
openerp/models.py