diff options
| author | Andrea Grazioso (agr-odoo) <agr@odoo.com> | 2020-03-30 09:09:51 +0000 |
|---|---|---|
| committer | Andrea Grazioso (agr-odoo) <agr@odoo.com> | 2020-05-05 16:14:07 +0000 |
| commit | 5e94c70541b9595043bd6a24db62703309287965 (patch) | |
| tree | b9d168f99f0ff0083d3d3d7d3973de6c62015803 /addons/web/static/src/js/views/basic/basic_model.js | |
| parent | 57abcab99b3b33596beb912f5bded0d4b3c28429 (diff) | |
[FIX] sale_coupon: fix _remove_invalid_reward_lines check
Create a coupon program with:
- Minimum purchase in currency (ex 100$ tax excluded)
- Fixed discount applied on order (ex 100$)
Generate some coupon.
Go to shop. Fill an order with amount slightly above the minimum
required by the coupon (ex. 125$). Apply the coupon.
Nothing occur to the cart: the coupon is applied correctly,
but when the cart is refreshed it will check for any non-applicable
promotion against the current order state (125$ - 100$ = 25$, since
the coupon check is for orders above 100$ the promotion will be removed).
Fixing the condition in '_get_no_effect_on_threshold_lines' to detect
also coupon lines in order to make the fair computation.
opw-2224169
closes odoo/odoo#50694
X-original-commit: 2f733ba85320dd67c6892f6a56e3680a3b2fbb50
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions
