summaryrefslogtreecommitdiff
path: root/addons/analytic_user_function/analytic_user_function_view.xml
diff options
context:
space:
mode:
authorDenis Ledoux <dle@odoo.com>2015-05-06 17:25:44 +0200
committerDenis Ledoux <dle@odoo.com>2015-05-06 17:25:44 +0200
commitb7f1b9c01ec108ba06a6eea23dee6815ca7fc48e (patch)
tree7a3463ac9a80b2e2ea31818bb537faaaca7269fc /addons/analytic_user_function/analytic_user_function_view.xml
parent6553eb37425d8ac9f727971d04509a8130af21f0 (diff)
[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
Diffstat (limited to 'addons/analytic_user_function/analytic_user_function_view.xml')
0 files changed, 0 insertions, 0 deletions