From c1da31e771b18e142670a352a2f4c5a088f98982 Mon Sep 17 00:00:00 2001 From: Freni-OSI Date: Thu, 20 Oct 2022 10:58:26 +0530 Subject: [PATCH] [FIX]Test --- fieldservice_calendar/tests/test_fsm_calendar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fieldservice_calendar/tests/test_fsm_calendar.py b/fieldservice_calendar/tests/test_fsm_calendar.py index 6a7b827fe5..e0c9937735 100644 --- a/fieldservice_calendar/tests/test_fsm_calendar.py +++ b/fieldservice_calendar/tests/test_fsm_calendar.py @@ -36,13 +36,13 @@ def test_fsm_order_no_calendar_user(self): "scheduled_duration": 2, } ) - new.location_id = self.location_1.id evt = new.calendar_event_id self.assertFalse(evt.exists()) self.team.calendar_user_id = self.env.ref("base.partner_root").id # update order new.write({"scheduled_duration": 3}) + new.write({"location_id": self.location_1.id}) evt = new.calendar_event_id self.assertTrue(evt.exists()) evt.with_context(recurse_order_calendar=False).write({"duration": 5})