summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src
diff options
context:
space:
mode:
authorVictor Feyens <vfe@odoo.com>2020-10-07 15:23:22 +0000
committerVictor Feyens <vfe@odoo.com>2020-10-19 12:38:18 +0000
commit5d45322cb6abb689dd15566e938fe75318dfdc4d (patch)
tree48caa903fef34cc4a0c59f4a0ff8ccc8beb5b300 /addons/web_editor/static/src
parent447057cfbe28db760834fba2dfd2c79303825cbc (diff)
[FIX] sale_coupon: perf improvement
_get_applicable_no_code_promo_programs always returns a subset of _get_applicable_programs ... We can thus avoid summing the results from the two methods, which triggered unnecessary operations and resulted in a recordset with useless duplicates... Furthermore, as _get_applicable_programs returned recordset is only used to compare to other recordsets (substraction or comparison), it doesn't need to be sorted by the model order. We can thus safely order the result by id instead, to reduce the query complexity. X-original-commit: 4eae55de13583b93315344b275ed1ba8bc335215
Diffstat (limited to 'addons/web_editor/static/src')
0 files changed, 0 insertions, 0 deletions