summaryrefslogtreecommitdiff
path: root/addons/website_event
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2020-07-06 12:09:47 +0000
committerThibault Delavallée <tde@odoo.com>2020-08-04 14:28:29 +0000
commit506832302d15e747bfed83ad585931587ea58c6e (patch)
tree6290affee84e16240af086e513b6f2002906581a /addons/website_event
parent8793b9b4251a7aa0e71da1dbc5738cd15d0b5dd5 (diff)
[IMP] website_event_online: add base for tests
RATIONALE Events are sometimes held online, gathering a community. In this merge we improve Event application to better support full-online events with improved tracks, wishlists, chat rooms, ... PURPOSE In this commit we add base for tests linked to online event and all its sub modules. LINKS Community PR #53540 Enterprise PR odoo/enterprise#11384 Task ID-2252655 (Main Online Event task) Task ID-2283796 (Event B2Basics / Registration Flow) Co-Authored-By: Aurélien Warnon <awa@odoo.com> Co-Authored-By: David Beguin <dbe@odoo.com> Co-Authored-By: Thibault Delavallée <tde@odoo.com>
Diffstat (limited to 'addons/website_event')
-rw-r--r--addons/website_event/controllers/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_event/controllers/main.py b/addons/website_event/controllers/main.py
index fe953bf8917..e814ea851b5 100644
--- a/addons/website_event/controllers/main.py
+++ b/addons/website_event/controllers/main.py
@@ -36,7 +36,7 @@ class WebsiteEventController(http.Controller):
searches.setdefault('country', 'all')
website = request.website
- today = datetime.today()
+ today = fields.Datetime.today()
def sdn(date):
return fields.Datetime.to_string(date.replace(hour=23, minute=59, second=59))