From 1e1add8014f7f337fdfe50baa978089a1947fd1f Mon Sep 17 00:00:00 2001 From: Arnaud Joset Date: Mon, 13 Nov 2023 15:50:08 +0100 Subject: [PATCH] [FIX] calendar: test_event_creation_mail was faulty The following commit updated the test to use freezegun. One of the event start date was not properly set before the freezegun date. As a result a notification mail was sent. https://github.com/odoo/odoo/commit/080688868e6acf31d3bd624798559852272bcc1a Strangely, the test was passing during our tests even if the date was in the past. Runbot issue: https://runbot.odoo.com/web#id=36179&view_type=form&model=runbot.build.error&menu_id=405&cids=1 closes odoo/odoo#141959 X-original-commit: f5a131931583a5d6c415742b3a65793b10e60daf Signed-off-by: Arnaud Joset (arj) --- addons/calendar/tests/test_calendar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/calendar/tests/test_calendar.py b/addons/calendar/tests/test_calendar.py index 909435b93ae..6d7a05c523d 100644 --- a/addons/calendar/tests/test_calendar.py +++ b/addons/calendar/tests/test_calendar.py @@ -354,7 +354,7 @@ class TestCalendar(SavepointCaseWithUserDemo): 'allday': False, 'recurrency': False, 'partner_ids': partner_ids, - 'start': "2023-10-09 08:00:00", + 'start': "2023-10-04 08:00:00", 'stop': "2023-10-10 08:00:00", })