diff --git a/fleet_vehicle_service_calendar/models/calendar_event.py b/fleet_vehicle_service_calendar/models/calendar_event.py index bf757fe8..2eada85a 100644 --- a/fleet_vehicle_service_calendar/models/calendar_event.py +++ b/fleet_vehicle_service_calendar/models/calendar_event.py @@ -25,7 +25,8 @@ def default_get(self, fields): # sync res_model / res_id to service id # (aka creating meeting from service chatter) ctx = self.env.context - if "vehicle_service_id" not in defaults: + if "vehicle_service_id" not in defaults and \ + defaults.get("res_model") == 'fleet.vehicle.log.services': defaults["vehicle_service_id"] = defaults.get("res_id", False) or ctx.get( "default_res_id", False )