[NEW] event_track_calendar_event*
This commit is contained in:
1
event_track_calendar_event_event_speaker/__init__.py
Normal file
1
event_track_calendar_event_event_speaker/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from . import models
|
18
event_track_calendar_event_event_speaker/__manifest__.py
Normal file
18
event_track_calendar_event_event_speaker/__manifest__.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Copyright 2016-2020 Akretion France (<https://www.akretion.com>)
|
||||
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
{
|
||||
"name": "Event track calendar event - event speakers",
|
||||
"version": "16.0.1.0.0",
|
||||
"license": "AGPL-3",
|
||||
"author": "Elabore",
|
||||
"website": "https://www.elabore.coop",
|
||||
"category": "",
|
||||
'summary': 'Event track calendar event adaptation when event_speaker module installed',
|
||||
"depends": ["event_track_calendar_event","event_speaker"],
|
||||
"data": [
|
||||
],
|
||||
"installable": True,
|
||||
"auto_install":True
|
||||
}
|
@@ -0,0 +1 @@
|
||||
from . import event_track
|
@@ -0,0 +1,18 @@
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
||||
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)
|
||||
|
||||
return res
|
||||
|
Reference in New Issue
Block a user