[FIX] calendar: invalidate cache to avoid (pre)fetching invalid virtual IDs
authorXavier Morel <xmo@openerp.com>
Mon, 14 Jul 2014 13:41:40 +0000 (15:41 +0200)
committerXavier Morel <xmo@openerp.com>
Mon, 14 Jul 2014 13:41:40 +0000 (15:41 +0200)
commita1de79b875ca4283eea88c9a7f557124423548ed
tree68981c1b5b7f5e24f462af59a86705a49ae1c21d
parent3491b7de34c9599f73bfb047e44b1abca4bb3c3f
[FIX] calendar: invalidate cache to avoid (pre)fetching invalid virtual IDs

Because the new API basically browses everything, the virtual IDs used by
calendar.event are added to the cache and prefetching tries to get them from
the database resulting in conversion errors. These ids have to be forcibly
evicted to avoid the error.
addons/calendar/calendar.py