debug
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user