diff --git a/event_track_calendar_event/models/event_registration.py b/event_track_calendar_event/models/event_registration.py index 2457037..0804e7e 100644 --- a/event_track_calendar_event/models/event_registration.py +++ b/event_track_calendar_event/models/event_registration.py @@ -1,15 +1,18 @@ # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo import fields, models, api, Command - +import logging +_logger = logging.getLogger(__name__) class EventRegistration(models.Model): _inherit = "event.registration" def write(self, vals): + _logger.warning("call write...") res = super().write(vals) for registration in self: for track in registration.event_id.track_ids: track.sync_calendar_event() + _logger.warning("called !") return res @api.model_create_multi