[FIX] models: stored func fields computation on one2many write
authorDenis Ledoux <dle@odoo.com>
Thu, 14 Aug 2014 16:19:48 +0000 (18:19 +0200)
committerDenis Ledoux <dle@odoo.com>
Thu, 14 Aug 2014 16:19:48 +0000 (18:19 +0200)
commitd0a2b6b3da57e04fc0cdd44b2e7175cf212ebe78
tree1a48f7adc0e5974e66412366a3762a9cf52d13af
parent3eaa2f8371f5ef4530c58c4fcd55c377d4d69ead
[FIX] models: stored func fields computation on one2many write

On one2many fields writing in an existing record (not when creating new record), the computed stored fields of the one2many were not re-computed correctly
Computed stored fields were marked as modified only if no_store_function was not set to True in the context. no_store_function is set when writing one2many records on an existing record.
Now, these computed stored fields are marked as to be recomputed, but are recomputed later, at the end of the existing record write
openerp/models.py