Skip to content

Commit

Permalink
[ADD] event_track_multi_date
Browse files Browse the repository at this point in the history
  • Loading branch information
victor-champonnois committed Sep 12, 2024
1 parent 7e2ad59 commit d481869
Show file tree
Hide file tree
Showing 14 changed files with 550 additions and 0 deletions.
60 changes: 60 additions & 0 deletions event_track_multi_date/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
========================
Multiple Dates per Track
========================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:0d2b275e6036dd25a6e5507577ac20bace7da2d3d126ac2d8f11bbf0df7edf6e
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-coopiteasy%2Faddons-lightgray.png?logo=github
:target: https://github.com/coopiteasy/addons/tree/16.0/event_track_multi_date
:alt: coopiteasy/addons

|badge1| |badge2| |badge3|

This module allows to set multiple dates per track.

**Table of contents**

.. contents::
:local:

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/coopiteasy/addons/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/coopiteasy/addons/issues/new?body=module:%20event_track_multi_date%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* Coop IT Easy SC

Contributors
~~~~~~~~~~~~

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

Maintainers
~~~~~~~~~~~

This module is part of the `coopiteasy/addons <https://github.com/coopiteasy/addons/tree/16.0/event_track_multi_date>`_ project on GitHub.

You are welcome to contribute.
1 change: 1 addition & 0 deletions event_track_multi_date/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
18 changes: 18 additions & 0 deletions event_track_multi_date/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright 2017-19 David Vidal<[email protected]>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

{
"name": "Multiple Dates per Track",
"version": "16.0.1.0.0",
"author": "Coop IT Easy SC, Odoo Community Association (OCA)",
"license": "AGPL-3",
"website": "https://github.com/coopiteasy/addons",
"category": "Marketing",
"summary": "Multiple Dates per Track",
"depends": ["website_event_track"],
"data": [
"security/ir.model.access.csv",
"views/event_track.xml",
],
"installable": True,
}
2 changes: 2 additions & 0 deletions event_track_multi_date/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import event_track
from . import event_track_date
11 changes: 11 additions & 0 deletions event_track_multi_date/models/event_track.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Copyright 2017 David Vidal<[email protected]>
# Copyright 2017 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from odoo import fields, models


class EventTrackSession(models.Model):
_inherit = "event.track"

dates = fields.One2many(comodel_name="event.track.date", inverse_name="track_id")
13 changes: 13 additions & 0 deletions event_track_multi_date/models/event_track_date.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright 2017 David Vidal<[email protected]>
# Copyright 2017 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from odoo import fields, models


class EventTrackDate(models.Model):
_name = "event.track.date"
_description = "Track dates"

track_id = fields.Many2one("event.track")
date = fields.Datetime()
1 change: 1 addition & 0 deletions event_track_multi_date/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* `Coop IT Easy SC <https://coopiteasy.be>`_
1 change: 1 addition & 0 deletions event_track_multi_date/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This module allows to set multiple dates per track.
2 changes: 2 additions & 0 deletions event_track_multi_date/security/ir.model.access.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_event_track_date,event.track.date.user,event_track_multi_date.model_event_track_date,event.group_event_user,1,1,1,1
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit d481869

Please sign in to comment.