[IMP] event_track_calendar_event: event_tracks.speakers moved to calendar_events
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
"license": "AGPL-3",
|
||||
"author": "Elabore",
|
||||
"website": "https://www.elabore.coop",
|
||||
'summary': 'Not usefull anymore for CTL',
|
||||
"category": "",
|
||||
"depends": ["website_event_track"],
|
||||
"data": [
|
||||
|
@@ -10,15 +10,15 @@
|
||||
-->
|
||||
<!-- <field name="date" position="replace" /> -->
|
||||
<page name="speaker" position="before">
|
||||
<page name="calendar_events" string="Dates">
|
||||
<page name="calendar_events" string="Plages horaires">
|
||||
<field name="calendar_event_ids" context="{'default_name':name}" colspan="2">
|
||||
<tree default_order="start,stop">
|
||||
<tree default_order="start,stop" editable="bottom">
|
||||
<field name="name" string="Name" invisible="1" />
|
||||
<field name="start" string="From" />
|
||||
<field name="stop" string="To" />
|
||||
<field name="description" />
|
||||
</tree>
|
||||
<form>
|
||||
<!-- <form>
|
||||
<group>
|
||||
<field name="name" string="Name" invisible="True" />
|
||||
<label for="start" string="Date"/>
|
||||
@@ -29,7 +29,7 @@
|
||||
</div>
|
||||
<field name="description" />
|
||||
</group>
|
||||
</form>
|
||||
</form> -->
|
||||
</field>
|
||||
</page>
|
||||
</page>
|
||||
|
@@ -6,5 +6,5 @@ class CalendarEvent(models.Model):
|
||||
_inherit = 'calendar.event'
|
||||
|
||||
speaker_ids = fields.Many2many(
|
||||
'res.partner', "calendar_event_speaker_rel", "calendar_event_id", "speaker_id", string="Speakers", domain="[('is_company','=',False)]"
|
||||
'res.partner', "calendar_event_speaker_rel", "calendar_event_id", "speaker_id", string="Intervenants", domain="[('is_company','=',False)]"
|
||||
)
|
||||
|
@@ -6,7 +6,7 @@ class EventTrack(models.Model):
|
||||
_inherit = "event.track"
|
||||
|
||||
speaker_ids = fields.Many2many(
|
||||
'res.partner', string="Speakers", compute="compute_speaker_ids"
|
||||
'res.partner', string="Intervenants", compute="compute_speaker_ids"
|
||||
)
|
||||
|
||||
def compute_speaker_ids(self):
|
||||
|
@@ -6,12 +6,12 @@
|
||||
<field name="model">event.track</field>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='calendar_event_ids']/tree/field[@name='description']" position="after">
|
||||
<field name="speaker_ids" />
|
||||
<field name="speaker_ids" widget="many2many_tags"/>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//field[@name='calendar_event_ids']/form//field[@name='description']" position="after">
|
||||
<!-- <xpath expr="//field[@name='calendar_event_ids']/form//field[@name='description']" position="after">
|
||||
<field name="speaker_ids" />
|
||||
</xpath>
|
||||
</xpath> -->
|
||||
|
||||
</field>
|
||||
</record>
|
||||
|
Reference in New Issue
Block a user