Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lignon_hotel_custom/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
18 changes: 18 additions & 0 deletions lignon_hotel_custom/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright 2019 Coop IT Easy SCRL fs
# Manuel Claeys Bouuaert <manuel@coopiteasy.be>
# 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,
}
1 change: 1 addition & 0 deletions lignon_hotel_custom/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import hotel_reservation
9 changes: 9 additions & 0 deletions lignon_hotel_custom/models/hotel_reservation.py
Original file line number Diff line number Diff line change
@@ -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"
)
1 change: 1 addition & 0 deletions lignon_hotel_custom/oca_dependencies.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
hotel https://github.com/OCA/vertical-hotel.git 11.0
1 change: 1 addition & 0 deletions lignon_hotel_custom/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Coop IT Easy SCRLfs
1 change: 1 addition & 0 deletions lignon_hotel_custom/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Add field to track which reservation are linked to event hall rental.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

13 changes: 13 additions & 0 deletions lignon_hotel_custom/views/hotel_reservation.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<record id="view_hotel_reservation_form_lignon_costum" model="ir.ui.view">
<field name="name">hotel.reservation.form.lignon.custom</field>
<field name="model">hotel.reservation</field>
<field name="inherit_id" ref="hotel_reservation.view_hotel_reservation_form"/>
<field name="arch" type="xml">
<field name="open" position="before">
<field name="linked_to_event_hall_rental"/>
</field>
</field>
</record>
</odoo>