odoo/openerp
Denis Ledoux b7f1b9c01e [FIX] models: recompute nested old-style computed field
The `set` method of the one2many class returns a list
of the fields that require recomputation,
the computing of the function fields being delayed
for performances reasons.

Nevertheless, if the `set` method was called
through another `set` method, in other words,
nested `set` calls, the fields to recompute returned
by the second, nested, call to set were never recomputed,
the result list were simply lost.

e.g.:
```
create/write
│set
└─── create/write with recs.env.recompute set to False
    │set
        └─── create
             with recs.env.recompute set to False
```

To overcome this problem, the list of old api style
compute fields to recompute is stored
within the environment, and this list is cleared
each time the store_set_value has done its job of
recomputing all old api style compute fields.

opw-629650
opw-632624
closes #6053
2015-05-06 17:25:44 +02:00
..
addons [FIX] report,qweb: use non-beaking space between amount and currency 2015-05-05 08:27:04 +02:00
cli [FIX] Scaffolding: moved two files to better reflect the architecture we currently use for our themes 2015-03-02 16:38:35 +01:00
conf [MERGE] openerp.pooler is deprecated. 2013-03-27 17:40:45 +01:00
modules [FIX] registry: recompute `pure_function_fields` after every setup 2015-05-06 09:11:53 +02:00
osv [FIX] fields: when computing digits, use an existing cursor instead of a new one 2015-05-05 17:33:16 +02:00
report [FIX] report,qweb: use non-beaking space between amount and currency 2015-05-05 08:27:04 +02:00
service [MERGE] forward port of branch saas-3 up to 9323f2b 2015-04-20 12:11:15 +02:00
tests [FIX] phantomjs 2.0 compatibility 2015-02-26 15:08:17 +01:00
tools [ADD] base: Kabyle language 2015-05-04 16:56:03 +02:00
workflow [IMP] workflow: add sequence for ordering workflow transitions (split/join mode especially for XOR) 2014-08-05 12:26:28 +02:00
PKG-INFO [REM] netrpc: KILL EVERYBODY 2013-02-21 13:18:25 +01:00
__init__.py [IMP] fields: turn field.digits and column.digits into dynamic properties 2015-03-23 14:36:15 +01:00
api.py [FIX] models: recompute nested old-style computed field 2015-05-06 17:25:44 +02:00
exceptions.py [ADD] doc: new documentation, with training tutorials, and new scaffolding 2014-08-22 17:51:20 +02:00
fields.py [FIX] fields: when computing digits, use an existing cursor instead of a new one 2015-05-05 17:33:16 +02:00
http.py [FIX] http: support old version of psutil 2015-03-01 02:17:04 +01:00
import_xml.rng [MERGE] ir-ui-view split active and show_customize 2014-08-31 16:56:44 +02:00
loglevels.py [REF] logging: removed pseudo log-level TEST. 2013-03-26 16:58:44 +01:00
models.py [FIX] models: recompute nested old-style computed field 2015-05-06 17:25:44 +02:00
netsvc.py [FIX] netsvc: logs to syslog 2015-04-21 18:10:48 +02:00
pooler.py [IMP] registry: avoid every direct access registry.db, and rename attribute as registry._db 2014-04-09 15:35:15 +02:00
release.py [REL] Odoo 8.0 2014-09-18 12:11:18 +02:00
sql_db.py [MERGE] forward port of branch saas-3 up to 09b277c 2015-04-27 14:02:52 +02:00