Skip to content
Snippets Groups Projects
Commit 5ce13cc0 authored by pedrambiria's avatar pedrambiria
Browse files

[FIX] sale_coupon: check coupon's date with present time


Before this commit: a coupon's start and end dates were compared with
the order date. When a customer adds a product to the cart, it creates
an order on the website. If the customer makes an order, it will remain
active until he completes it, even when the coupon is expired.

To reproduce the problem, add a product to the cart, create a coupon,
and set its end date to present time. Now you can use the coupon after
the end date has passed. So it's better to check the date with the
current time.

opw-2711987

closes odoo/odoo#82399

Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
parent 440741af
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment