diff options
| author | Olivier LAURENT <olivier.laurent@acsone.eu> | 2015-08-31 17:42:13 +0200 |
|---|---|---|
| committer | Denis Ledoux <dle@odoo.com> | 2015-08-31 17:45:21 +0200 |
| commit | 017688cc29e71270762c828760feb062bbe9ba24 (patch) | |
| tree | 2c5ce5f59bcfd80ceca32869c4c249b809553bd0 /openerp/addons/test_new_api/demo_data.xml | |
| parent | 408ac6a5f03b4993027f41c1e66effc84b2d7426 (diff) | |
[FIX] models: old api, prevent infinite recursion in stored function fields
The risk was introduced by b7f1b9c.
IF _store_set_values() recall another _create() or _write(),
the recomputation mechanism enter in an infinite recursion
trying to reevaluate for each call exactly the same fields
for the same records than the previous one
This revision replaces the loop of _store_set_values()
by 2 nested loops:
- that not breaks the entire consumption
of recompute_old queue
(Tested thanks to revision a922d39),
- that allows to clear the queue
before each recomputations bundle fixing thereby the recursion
Closes #7558
Diffstat (limited to 'openerp/addons/test_new_api/demo_data.xml')
| -rw-r--r-- | openerp/addons/test_new_api/demo_data.xml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/openerp/addons/test_new_api/demo_data.xml b/openerp/addons/test_new_api/demo_data.xml index acb53a7b07f..1715b024cd7 100644 --- a/openerp/addons/test_new_api/demo_data.xml +++ b/openerp/addons/test_new_api/demo_data.xml @@ -26,5 +26,7 @@ <field name="discussion" ref="discussion_0"/> <field name="body">This is a much longer message</field> </record> + <record id="c1" model="test_old_api.function_counter"> + </record> </data> </openerp> |
