debug
This commit is contained in:
@@ -1,15 +1,18 @@
|
|||||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
||||||
from odoo import fields, models, api, Command
|
from odoo import fields, models, api, Command
|
||||||
|
import logging
|
||||||
|
_logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
class EventRegistration(models.Model):
|
class EventRegistration(models.Model):
|
||||||
_inherit = "event.registration"
|
_inherit = "event.registration"
|
||||||
|
|
||||||
def write(self, vals):
|
def write(self, vals):
|
||||||
|
_logger.warning("call write...")
|
||||||
res = super().write(vals)
|
res = super().write(vals)
|
||||||
for registration in self:
|
for registration in self:
|
||||||
for track in registration.event_id.track_ids:
|
for track in registration.event_id.track_ids:
|
||||||
track.sync_calendar_event()
|
track.sync_calendar_event()
|
||||||
|
_logger.warning("called !")
|
||||||
return res
|
return res
|
||||||
|
|
||||||
@api.model_create_multi
|
@api.model_create_multi
|
||||||
|
Reference in New Issue
Block a user