Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
victor-champonnois committed Sep 12, 2024
1 parent 3253ea9 commit 7069c8a
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 12 deletions.
4 changes: 1 addition & 3 deletions event_track_speaker_catering/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ Authors
Contributors
~~~~~~~~~~~~

* `Coop IT Easy SC <https://coopiteasy.be>`_:

* Victor Champonnois
* `Coop IT Easy SC <https://coopiteasy.be>`_

Maintainers
~~~~~~~~~~~
Expand Down
5 changes: 5 additions & 0 deletions event_track_speaker_catering/models/event_track_speaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,8 @@ class EventTrackSpeaker(models.Model):
meal_date_ids = fields.One2many(
"event.track.speaker.meal.date", "speaker_id", string="Meal Date"
)

# @api.onchange("event_id")
# def get_date_domain(self):
# for rec in self:
# event_dates = []
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,15 @@
from odoo import fields, models


class EventTrackSpeakerBook(models.Model):
class EventTrackSpeakerMealDate(models.Model):
_name = "event.track.speaker.meal.date"
_description = "Track Speaker Meal Date"

speaker_id = fields.Many2one("event.track.speaker", string="Speaker")
event_id = fields.Many2one(
"event.event", related="speaker_id.event_id", string="Event", store="True"
)
date = fields.Date()
date = fields.Date(default=lambda self: self.get_event_begin_date())

def get_event_begin_date(self):
return self.event_id.date_begin
4 changes: 1 addition & 3 deletions event_track_speaker_catering/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
* `Coop IT Easy SC <https://coopiteasy.be>`_:

* Victor Champonnois
* `Coop IT Easy SC <https://coopiteasy.be>`_
5 changes: 1 addition & 4 deletions event_track_speaker_catering/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -401,10 +401,7 @@ <h2><a class="toc-backref" href="#toc-entry-3">Authors</a></h2>
<div class="section" id="contributors">
<h2><a class="toc-backref" href="#toc-entry-4">Contributors</a></h2>
<ul class="simple">
<li><a class="reference external" href="https://coopiteasy.be">Coop IT Easy SC</a>:<ul>
<li>Victor Champonnois</li>
</ul>
</li>
<li><a class="reference external" href="https://coopiteasy.be">Coop IT Easy SC</a></li>
</ul>
</div>
<div class="section" id="maintainers">
Expand Down

0 comments on commit 7069c8a

Please sign in to comment.