diff options
| author | Romain Derie <rde@odoo.com> | 2018-11-09 14:27:36 +0100 |
|---|---|---|
| committer | Romain Derie <rde@odoo.com> | 2018-11-15 15:56:29 +0100 |
| commit | 6f380eaf8f2f15c6b9c19987adc6813e70416497 (patch) | |
| tree | 60fa8a408af30f58cd9912d99b26a72fa5b358c2 /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 2f392ec561fe85826757e61cf3adc2911a2c24f4 (diff) | |
[FIX] website_sale_coupon: do not show generated coupon code if expired
Before this commit, an `expired` generated coupon would be shown to the user.
Now we hide these `expired` coupons.
Note: An `expired` generated coupon might typically come from a SO that does
not meet a 'on_next_order' program anymore. So the generated coupon that
was set to `reserved` got canceled and set to `expired`.
Step to reproduce:
- Create a program oferring a product B on next order if you buy 2 product A
- Add 2 product A to cart, you then see the message that you got a coupon for
your next order
- Remove on product A, you still see the message even if the generated coupon
is now expired and not valid anymore.
Closes #3062
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
