[FIX] models: improve rationale for the management of flag 'recompute' in context
authorRaphael Collet <rco@openerp.com>
Mon, 18 Aug 2014 09:53:13 +0000 (11:53 +0200)
committerRaphael Collet <rco@openerp.com>
Tue, 19 Aug 2014 09:50:42 +0000 (11:50 +0200)
commit052f9ed5d7505d6312dd3f1b0a364aa759beaa21
tree44eebb686ca1a0a0c7d0c17c1b4767e1a5e956fb
parent62b0d99cfe537e7f7f1e8794974230abbcdbfe44
[FIX] models: improve rationale for the management of flag 'recompute' in context

When the context contains 'recompute': False, the recomputation was not even
prepared. Now both create() and write() prepare the recomputation by invoking
method modified(). The flag only controls whether method recompute() is invoked.
In addintion, the former flag 'no_store_function' was converted to the flag
'recompute', so that both create() and write() use the same flag.

Fixes #1456
addons/account/account_move_line.py
addons/project_timesheet/project_timesheet.py
openerp/models.py
openerp/osv/fields.py