[WIP][MIG][11.0] Hotel Calendar & Hotel Channel Connector

This commit is contained in:
QS5ELkMu
2018-07-26 13:15:29 +02:00
parent a9a4e59882
commit 6f5414a86a
162 changed files with 23506 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="action_hotel_calendar" model="ir.actions.act_window">
<field name="name">Hotel Calendar</field>
<field name="res_model">hotel.reservation</field>
<field name="view_mode">pms</field>
</record>
<record id="action_hotel_calendar_management" model="ir.actions.act_window">
<field name="name">Hotel Calendar Management</field>
<field name="res_model">hotel.calendar.management</field>
<field name="view_mode">mpms</field>
</record>
<menuitem id="hotel_calendar_menu" name="Hotel Calendar" sequence="10"
web_icon="hotel_calendar,static/description/icon_calendar.png"
action="action_hotel_calendar" />
<menuitem id="hotel_calendar_management_menu" name="Hotel Calendar Management" sequence="20"
web_icon="hotel_calendar,static/description/icon_calendar_configurator.png"
action="action_hotel_calendar_management" groups="hotel.group_hotel_manager" />
<menuitem id="hotel_virtual_room_pricelist_cached" name="VRoom Pricelist Cached"
sequence="1" action="hotel_virtual_room_pricelist_cached_action_form_tree" parent="sale.menu_sale_config"/>
</odoo>

View File

@@ -0,0 +1,81 @@
<odoo>
<data noupdate="1">
<function id="default_color_pre_reservation"
model="ir.default" name="set"
eval="('res.config.settings', 'color_pre_reservation', '#A4A4A4')"/>
<function id="default_color_reservation"
model="ir.default" name="set"
eval="('res.config.settings', 'color_reservation', '#4E9DC4')"/>
<function id="default_color_stay"
model="ir.default" name="set"
eval="('res.config.settings', 'color_stay', '#b40606')"/>
<function id="default_color_stay_pay"
model="ir.default" name="set"
eval="('res.config.settings', 'color_stay_pay', '#54d12b')"/>
<function id="default_color_checkout"
model="ir.default" name="set"
eval="('res.config.settings', 'color_checkout', '#FF0000')"/>
<function id="default_color_dontsell"
model="ir.default" name="set"
eval="('res.config.settings', 'color_dontsell', '#000000')"/>
<function id="default_color_staff"
model="ir.default" name="set"
eval="('res.config.settings', 'color_staff', '#FF9933')"/>
<function id="default_color_to_assign"
model="ir.default" name="set"
eval="('res.config.settings', 'color_to_assign', '#DFFF00')"/>
<function id="default_color_payment_pending"
model="ir.default" name="set"
eval="('res.config.settings', 'color_payment_pending', '#f70f0f')"/>
<function id="default_color_letter_pre_reservation"
model="ir.default" name="set"
eval="('res.config.settings', 'color_letter_pre_reservation', '#000000')"/>
<function id="default_color_letter_reservation"
model="ir.default" name="set"
eval="('res.config.settings', 'color_letter_reservation', '#000000')"/>
<function id="default_color_letter_reservation_pay"
model="ir.default" name="set"
eval="('res.config.settings', 'color_letter_reservation_pay', '#000000')"/>
<function id="default_color_letter_stay"
model="ir.default" name="set"
eval="('res.config.settings', 'color_letter_stay', '#FFFFFF')"/>
<function id="default_color_letter_stay_pay"
model="ir.default" name="set"
eval="('res.config.settings', 'color_letter_stay_pay', '#000000')"/>
<function id="default_color_letter_checkout"
model="ir.default" name="set"
eval="('res.config.settings', 'color_letter_checkout', '#FFFFFF')"/>
<function id="default_color_letter_dontsell"
model="ir.default" name="set"
eval="('res.config.settings', 'color_letter_dontsell', '#FFFFFF')"/>
<function id="default_color_letter_staff"
model="ir.default" name="set"
eval="('res.config.settings', 'color_letter_staff', '#000000')"/>
<function id="default_color_letter_to_assign"
model="ir.default" name="set"
eval="('res.config.settings', 'color_letter_to_assign', '#000000')"/>
<function id="default_color_letter_payment_pending"
model="ir.default" name="set"
eval="('res.config.settings', 'color_letter_payment_pending', '#000000')"/>
</data>
</odoo>

View File

@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- FIXME: This collide with base view... something is wrong here :/
idk how define this view for use in pms view without touch base hotel view -->
<record id="hotel_calendar_view" model="ir.ui.view">
<field name="name">Hotel Calendar</field>
<field name="model">hotel.reservation</field>
<field name="inherit_id" ref="hotel.view_hotel_reservation_form" />
<field name="type">form</field>
<field name="arch" type="xml">
<xpath expr="." position="inside">
<div id="hcalendar"> </div>
</xpath>
</field>
</record>
<record id="hotel_calendar_management_view" model="ir.ui.view">
<field name="name">Hotel Calendar Management</field>
<field name="model">hotel.calendar.management</field>
<field name="type">form</field>
<field name="arch" type="xml">
<div id="hcalendar_management"> </div>
</field>
</record>
</odoo>