From c4eb6098da23d82a9d49af05ed675a00f381dc24 Mon Sep 17 00:00:00 2001 From: "Mahdi Cheikh Rouhou (macr)" Date: Mon, 11 Dec 2023 13:43:56 +0000 Subject: [PATCH] [FIX] calendar: Mark activity as done with text Issue: ====== Marking an activity of calender event as marked with text raises an error. Steps to reproduce the issue: ============================= -Go to any contact and create a meeting with him as an activity in the chatter. - Mark the actvity as done and add some text as feedback. - An error showing that the record is deleted. The issue already solved here , this commits only add the test. opw-3623719 closes odoo/odoo#146045 X-original-commit: 787f2f44961b9b5283b7bdc944acc2e8284212cc Signed-off-by: Mahdi Cheikh Rouhou (macr) --- addons/calendar/tests/test_mail_activity_mixin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/calendar/tests/test_mail_activity_mixin.py b/addons/calendar/tests/test_mail_activity_mixin.py index 16bffc4264e..70c5768b10f 100644 --- a/addons/calendar/tests/test_mail_activity_mixin.py +++ b/addons/calendar/tests/test_mail_activity_mixin.py @@ -75,3 +75,5 @@ class TestMailActivityMixin(MailCommon): act1.calendar_event_id = ev1 self.assertEqual(test_record.activity_calendar_event_id.name, ev1.name, "This should be the calendar event of the next activity") + + act1._action_done(feedback="Mark activity as done with text")