[FIX] models: do not prefetch fields to recompute, and recompute once only
authorRaphael Collet <rco@openerp.com>
Mon, 13 Oct 2014 10:38:59 +0000 (12:38 +0200)
committerRaphael Collet <rco@openerp.com>
Mon, 13 Oct 2014 10:38:59 +0000 (12:38 +0200)
commit044ed06feccf365f92f032a50596fdb451bea4bc
treed45720ee046e45f9ef711dc2356cdb4cc45a0e86
parentcfa04b1d3da30ff6628f8f3fe488bf7d18015348
[FIX] models: do not prefetch fields to recompute, and recompute once only

The method _prefetch_field() was accidentally prefetching fields to recompute;
which was skipping the actual recomputation, since a value was put in cache.
But sometimes the field's value was fixed by an extra recomputation of the
field.  Here we remove the extra recomputation and fix the cache corruption.
openerp/api.py
openerp/models.py