diff options
| author | Victor Feyens <vfe@odoo.com> | 2020-10-05 13:03:57 +0000 |
|---|---|---|
| committer | Victor Feyens <vfe@odoo.com> | 2020-10-19 12:13:46 +0000 |
| commit | cc74ad0108e47654f4a795556f03841319909c67 (patch) | |
| tree | 86e0b087c8a9b80da13f40654eaf2717a4ac03f6 /doc/reference/javascript_reference.rst | |
| parent | 871a118d2c72f58185cbf822375282b613e67337 (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
