-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
71 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
from . import event_track | ||
from . import event_track_speaker | ||
from . import event_track_speaker_book | ||
from . import event_track_speaker_book_provider |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
event_track_speaker_book/models/event_track_speaker_book_provider.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# SPDX-FileCopyrightText: 2024 Coop IT Easy SC | ||
# | ||
# SPDX-License-Identifier: AGPL-3.0-or-later | ||
|
||
from odoo import fields, models | ||
|
||
|
||
class EventTrackSpeakerBookProvider(models.Model): | ||
_name = "event.track.speaker.book.provider" | ||
_description = "Track Speaker Book Provider" | ||
|
||
name = fields.Char() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink | ||
access_event_track_speaker_book_registration,event.track.speaker.book.user,event_track_speaker_book.model_event_track_speaker_book,event.group_event_registration_desk,1,0,0,0 | ||
access_event_track_speaker_book_user,event.track.speaker.book.user,event_track_speaker_book.model_event_track_speaker_book,event.group_event_user,1,1,1,1 | ||
access_event_track_speaker_book_provider_registration,event.track.speaker.book.provider.user,event_track_speaker_book.model_event_track_speaker_book_provider,event.group_event_registration_desk,1,0,0,0 | ||
access_event_track_speaker_book_provider_user,event.track.speaker.book.provider.user,event_track_speaker_book.model_event_track_speaker_book_provider,event.group_event_user,1,1,1,1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,32 @@ | ||
<?xml version="1.0" ?> | ||
<odoo> | ||
<record model="ir.actions.act_window" id="action_event_speakers"> | ||
|
||
<record model="ir.actions.act_window" id="action_event_track_speaker_book"> | ||
<field name="name">Books</field> | ||
<field name="res_model">event.track.speaker.book</field> | ||
<field name="view_mode">tree,form</field> | ||
</record> | ||
|
||
<record model="ir.actions.act_window" id="action_event_track_speaker_book_provider"> | ||
<field name="name">Book Providers</field> | ||
<field name="res_model">event.track.speaker.book.provider</field> | ||
<field name="view_mode">tree,form</field> | ||
</record> | ||
|
||
<menuitem | ||
id="menu_event_speaker" | ||
id="menu_event_track_speaker_book" | ||
name="Track Speakers Books" | ||
sequence="40" | ||
action="action_event_speakers" | ||
action="action_event_track_speaker_book" | ||
parent="event.menu_event_configuration" | ||
groups="base.group_no_one" | ||
/> | ||
|
||
<menuitem | ||
id="menu_event_track_speaker_book_provider" | ||
name="Track Speakers Book Providers" | ||
action="action_event_track_speaker_book_provider" | ||
parent="event.menu_event_configuration" | ||
groups="base.group_no_one" | ||
/> | ||
|
||
</odoo> |