diff options
| author | Sébastien Mottet (oms) <oms@odoo.com> | 2020-04-27 11:53:01 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2020-05-19 10:14:39 +0000 |
| commit | 179c5fcaba9432a6f1f8af984ce3d7226a385dc1 (patch) | |
| tree | daf713e3760fdfaf656b49f0280cf550e394c61f /addons/timer/static/src | |
| parent | 28734ac268c7ef24c78e32223b9a4398e96cdb93 (diff) | |
[FIX] (website_)event: fix 'sold out' display condition on frontend
One condition among other to determine if SOLD OUT should be displayed for a
ticket is start_sale_date < current date. However is start_sale_date is not
set a traceback is raised.
Moreover timezones are not taken into account when comparing dates, which may
create issues.
A tool method 'is_launched' has been added to overcome this problem. It works
like the already existing field 'is_expired'. Its value is computed based on
start_sale_date and event_id.date_tz. This will be changed into a not stored
computed field in master.
Task ID 2244487
PR #51503
X-original-commit: 9f81e126cdb1ce79ef26077a708cad8a7614031f
Diffstat (limited to 'addons/timer/static/src')
0 files changed, 0 insertions, 0 deletions
