summaryrefslogtreecommitdiff
path: root/doc/reference/javascript_reference.rst
diff options
context:
space:
mode:
authorVictor Feyens <vfe@odoo.com>2020-10-05 13:03:57 +0000
committerVictor Feyens <vfe@odoo.com>2020-10-19 12:13:46 +0000
commitcc74ad0108e47654f4a795556f03841319909c67 (patch)
tree86e0b087c8a9b80da13f40654eaf2717a4ac03f6 /doc/reference/javascript_reference.rst
parent871a118d2c72f58185cbf822375282b613e67337 (diff)
[IMP] sale_coupon: avoid unnecessary filtering of coupon programs
Instead of summing the programs filtered by "current_order" and "next_order" usage, use all the programs directly. We can safely assume that the promo_applicability is always set, and if not, the code later should still behave correctly considering it wasn't verified in the other methods. This allows us to avoid two "useless" walkthrough on the coupons applied on the current sale order. X-original-commit: ce28d5bfd25c92ad8150b328ad834af8883ff1b4
Diffstat (limited to 'doc/reference/javascript_reference.rst')
0 files changed, 0 insertions, 0 deletions