diff options
| author | Paul Morelle <pmo@odoo.com> | 2020-06-24 08:53:04 +0000 |
|---|---|---|
| committer | Paul Morelle <pmo@odoo.com> | 2020-06-26 14:34:01 +0000 |
| commit | b2b01e2862a7298dcdc9a44c5540e57836885cc1 (patch) | |
| tree | ba40fed194d7a901e4fae1d242978a79f6afdde7 /addons/web/static/src/js/views/basic/basic_renderer.js | |
| parent | 7814ffe84522c7441522781f3664b9c97c43de1d (diff) | |
[FIX] sale: speed up sale report
Due to the row_number in the sale.report view, all queries using this
report were slowed down drastically as soon as there were a large amount
of sale.order.lines.
By using existing columns instead of computing new values at each query,
the queries execute in an acceptable time (even if the CASE statements
introduced by e7d8e26ae751 are still slowing down things a bit).
When there is no sale.order.line, min(l.id) would be NULL, so the
sale.order will be used instead. It is negated to avoid id conflicts.
However, note that addons/pos_sale/report/sale_report.py is not doing
anything to avoid conflicts between the ids of sale.order.line and
pos.order.line when doing its union.
closes odoo/odoo#53750
X-original-commit: 03bd6f5243e189cd05b3fc7ad774cc07ea733e14
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Signed-off-by: Paul Morelle <madprog@users.noreply.github.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_renderer.js')
0 files changed, 0 insertions, 0 deletions
