[IMP] event_track_calendar_event_* : refactoring
This commit is contained in:
@@ -5,14 +5,11 @@ from odoo import fields, models, api, Command
|
||||
class EventTrack(models.Model):
|
||||
_inherit = "event.track"
|
||||
|
||||
|
||||
def get_calendar_event_values(self):
|
||||
self.ensure_one()
|
||||
|
||||
res = super(EventTrack, self).get_calendar_event_values()
|
||||
|
||||
# add speakers
|
||||
res['partner_ids'].extend(self.event_id.speaker_ids.ids)
|
||||
|
||||
def get_calendar_event_partner_value(self):
|
||||
"""Add speaker ids to calendar event partners
|
||||
"""
|
||||
res = super(EventTrack, self).get_calendar_event_partner_value()
|
||||
res.extend(self.event_id.speaker_ids.ids)
|
||||
return res
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user