summaryrefslogtreecommitdiff
path: root/addons/website_payment/controllers/main.py
diff options
context:
space:
mode:
authorMartin Trigaux <mat@odoo.com>2016-06-27 16:11:03 +0200
committerMartin Trigaux <mat@odoo.com>2016-06-27 17:20:05 +0200
commitcc4f8df99f59dd7abed935c5acf58331e952a1a0 (patch)
treedb8b6d924c141a2b4ba0c79bdea80f1d15fa46f8 /addons/website_payment/controllers/main.py
parent9062c01c0298dd254197e5100ff9f23725f7e46f (diff)
[FIX] account: compute total invoice in batch
The computation of the total_invoiced field did not work in batch mode. When displaying a company in a form view (field invoice_total comptued), the children of this company are present in the cache and the value of the field invoice_total will be prefetched for these children as well (at least in 9.0). Most of the time this is redudant information and the same value is computed for each child while most of the invoices are on the parent. Batching the computation per partner allows to make one global query for all partners. Add test to make sure the total increase correctly after a test invoice confirmation.
Diffstat (limited to 'addons/website_payment/controllers/main.py')
0 files changed, 0 insertions, 0 deletions