odoo/openerp/addons/test_new_api
Raphael Collet ff93777099 [FIX] models: inverse several computed fields based on a common computed field
Consider fields G1 and G2 being computed fields with inverse methods that
require the value of a common dependency F, which is also a computed field.
For inversing G1 and G2, their values are put in cache, then their inverse
method is called.  If the inverse method of G1 requires the computation of F,
setting F's value will invalidate both G1 and G2 in cache.  Hence the value of
G2 is lost when invoking its inverse method!

The fix consists in marking G1 and G2 as being computed before invoking their
inverse method, which prevents them from being invalidated by field F.
2016-06-22 14:01:59 +02:00
..
tests [FIX] models: inverse several computed fields based on a common computed field 2016-06-22 14:01:59 +02:00
__init__.py [MERGE] new v8 api by rco 2014-07-06 17:05:41 +02:00
__openerp__.py [FIX] models: old api, prevent infinite recursion in stored function fields 2015-08-31 17:45:21 +02:00
demo_data.xml [FIX] osv: fix boolean in domain for custom field 2015-12-04 16:31:31 +01:00
ir.model.access.csv [FIX] models: inverse several computed fields based on a common computed field 2016-06-22 14:01:59 +02:00
models.py [FIX] models: inverse several computed fields based on a common computed field 2016-06-22 14:01:59 +02:00
views.xml [FIX] fields: during an onchange(), do not invalidate *2many fields because of their domain 2016-06-17 17:50:25 +02:00