summaryrefslogtreecommitdiff
path: root/addons/analytic_user_function/analytic_user_function_view.xml
diff options
context:
space:
mode:
authorDenis Ledoux <dle@odoo.com>2015-02-12 14:57:31 +0100
committerDenis Ledoux <dle@odoo.com>2015-02-12 14:57:31 +0100
commitc9154e08aab9114ce1e269f91c7c6d3972d4b114 (patch)
tree8bc098cd1f6cac747c3b5d2afa8d6cfab953060a /addons/analytic_user_function/analytic_user_function_view.xml
parenta67747f77e43f9708728586852d72564fe298320 (diff)
[FIX] api: environment recomputation
In a workflow context (for instance, in the invoice workflow), context is not passed. Therefore, relying on the 'recompute' key being the context in order to not recompute the fields does not work with Workflows. It leads to huge performance issues, as fields are recomputed recursively (instead of sequentially) when several records are implied. For instance, when reconciling several invoices with one payment (100 invoices with 1 payment for instance), records of each invoice are recomputed uselessly in each workflow call (for each "confirm_paid" method done for each invoice). With a significant number of invoices (100, for instance), it even leads to a "Maximum recursion depth reached" errror. closes #4905
Diffstat (limited to 'addons/analytic_user_function/analytic_user_function_view.xml')
0 files changed, 0 insertions, 0 deletions