diff --git a/lignon_hotel_custom/__init__.py b/lignon_hotel_custom/__init__.py new file mode 100644 index 00000000..0650744f --- /dev/null +++ b/lignon_hotel_custom/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/lignon_hotel_custom/__manifest__.py b/lignon_hotel_custom/__manifest__.py new file mode 100644 index 00000000..9138262a --- /dev/null +++ b/lignon_hotel_custom/__manifest__.py @@ -0,0 +1,18 @@ +# Copyright 2019 Coop IT Easy SCRL fs +# Manuel Claeys Bouuaert +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +{ + "name": "Lignon Hotel Custom", + "version": "11.0.1.0.0", + "author": "Coop IT Easy SCRLfs", + "category": "Hotel Management", + "website": "https://github.com/coopiteasy/lignon/", + "depends": ["hotel_reservation"], + "license": "AGPL-3", + "summary": "Specific odoo hotel module for La Ferme Du Lignon", + "data": ["views/hotel_reservation.xml"], + "auto_install": False, + "installable": True, + "application": False, +} diff --git a/lignon_hotel_custom/models/__init__.py b/lignon_hotel_custom/models/__init__.py new file mode 100644 index 00000000..16850d93 --- /dev/null +++ b/lignon_hotel_custom/models/__init__.py @@ -0,0 +1 @@ +from . import hotel_reservation diff --git a/lignon_hotel_custom/models/hotel_reservation.py b/lignon_hotel_custom/models/hotel_reservation.py new file mode 100644 index 00000000..e1ed8cac --- /dev/null +++ b/lignon_hotel_custom/models/hotel_reservation.py @@ -0,0 +1,9 @@ +from odoo import fields, models + + +class HotelReservation(models.Model): + _inherit = "hotel.reservation" + + linked_to_event_hall_rental = fields.Boolean( + string="Linked to Event Hall Rental" + ) diff --git a/lignon_hotel_custom/oca_dependencies.txt b/lignon_hotel_custom/oca_dependencies.txt new file mode 100644 index 00000000..95063d6d --- /dev/null +++ b/lignon_hotel_custom/oca_dependencies.txt @@ -0,0 +1 @@ +hotel https://github.com/OCA/vertical-hotel.git 11.0 diff --git a/lignon_hotel_custom/readme/CONTRIBUTORS.rst b/lignon_hotel_custom/readme/CONTRIBUTORS.rst new file mode 100644 index 00000000..b2844f3e --- /dev/null +++ b/lignon_hotel_custom/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Coop IT Easy SCRLfs diff --git a/lignon_hotel_custom/readme/DESCRIPTION.rst b/lignon_hotel_custom/readme/DESCRIPTION.rst new file mode 100644 index 00000000..ed6e6cdd --- /dev/null +++ b/lignon_hotel_custom/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +* Add field to track which reservation are linked to event hall rental. diff --git a/lignon_hotel_custom/views/hotel_reservation.xml b/lignon_hotel_custom/views/hotel_reservation.xml new file mode 100644 index 00000000..26601285 --- /dev/null +++ b/lignon_hotel_custom/views/hotel_reservation.xml @@ -0,0 +1,13 @@ + + + + hotel.reservation.form.lignon.custom + hotel.reservation + + + + + + + +