diff --git a/addons/mcs_appointment_booking/models/appointment_booking.py b/addons/mcs_appointment_booking/models/appointment_booking.py index 1b63760..fcaef44 100644 --- a/addons/mcs_appointment_booking/models/appointment_booking.py +++ b/addons/mcs_appointment_booking/models/appointment_booking.py @@ -105,6 +105,7 @@ class McsAppointmentBooking(models.Model): else: booking.calendar_event_id = self.env["calendar.event"].sudo().create(event_vals).id booking.state = "confirmed" + return True def action_cancel(self): for booking in self: @@ -112,3 +113,4 @@ class McsAppointmentBooking(models.Model): if booking.calendar_event_id: booking.calendar_event_id.sudo().unlink() booking.calendar_event_id = False + return True