mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[WIP] refactoring hotel settings
This commit is contained in:
@@ -64,7 +64,6 @@
|
||||
</button>
|
||||
|
||||
</div>
|
||||
<field name="hotel_id" invisible="0"/>
|
||||
<h2><field name="name"/></h2>
|
||||
<h1>
|
||||
<field name="partner_id" default_focus="1" placeholder="Guest" attrs="{'invisible':[('reservation_type','in',('out'))]}"/>
|
||||
@@ -80,8 +79,8 @@
|
||||
<field name="cancelled_reason" attrs="{'invisible':[('state','not in',('cancel'))]}"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="hotel_id" invisible="0"/>
|
||||
<field name="pricelist_id" />
|
||||
<field name="hotel_id" invisible="1"/>
|
||||
<field name="company_id" options="{'no_create': True}" groups="base.group_multi_company"/>
|
||||
<field name="reservation_type" attrs="{'readonly':[('state','not in',('draft'))]}"/>
|
||||
<field name="channel_type" attrs="{'required':[('reservation_type','=','normal')]}"/>
|
||||
|
||||
@@ -13,12 +13,29 @@
|
||||
<h1>
|
||||
<field name="name" class="oe_inline" />
|
||||
</h1>
|
||||
<field name="company_id" class="oe_inline" />
|
||||
<notebook>
|
||||
<page string="Hotel Settings" name="hotel_settings">
|
||||
<page string="General Information" name="hotel_general">
|
||||
<group>
|
||||
</group>
|
||||
</page>
|
||||
<page string="Settings" name="hotel_settings">
|
||||
<group colspan="4" col="4">
|
||||
<field name="company_id" class="oe_inline" />
|
||||
<field name="pricelist_id" required="True" />
|
||||
<field name="restriction_id" required="True" />
|
||||
</group>
|
||||
<group>
|
||||
<field name="tz" widget="timezone_mismatch"/>
|
||||
</group>
|
||||
<group colspan="4" col="4">
|
||||
<field name="arrival_hour" />
|
||||
<field name="departure_hour" />
|
||||
</group>
|
||||
</page>
|
||||
<page string="Rooms" name="hotel_settings">
|
||||
<group>
|
||||
<field name="room_type_ids"/>
|
||||
<field name="room_ids"/>
|
||||
</group>
|
||||
</page>
|
||||
</notebook>
|
||||
@@ -41,10 +58,14 @@
|
||||
<!-- actions -->
|
||||
|
||||
<record id="hotel_property_action" model="ir.actions.act_window">
|
||||
<field name="name">Hotel Property</field>
|
||||
<field name="name">Hotels</field>
|
||||
<field name="res_model">hotel.property</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
</record>
|
||||
|
||||
<!-- menus -->
|
||||
|
||||
<menuitem action="hotel_property_action" id="hotel_property_menu" parent="base.menu_users" sequence="10"/>
|
||||
|
||||
</odoo>
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
</h1>
|
||||
</div>
|
||||
<group>
|
||||
<field name="hotel_id" invisible="0"/>
|
||||
<field name="hotel_ids" invisible="0"/>
|
||||
</group>
|
||||
<div>
|
||||
<separator string="Pricelist Items"/>
|
||||
|
||||
@@ -16,4 +16,8 @@
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<menuitem name="Pricelist" id="pricelist_menu"
|
||||
action="product.product_pricelist_action2" sequence="22"
|
||||
parent="hotel.configuration_others" />
|
||||
|
||||
</odoo>
|
||||
|
||||
@@ -1,79 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<!-- Hotel Settings -->
|
||||
<record id="view_hotel_config_settings" model="ir.ui.view">
|
||||
<field name="name">res.config.settings.view.form.inherit.hotel</field>
|
||||
<field name="model">res.config.settings</field>
|
||||
<field name="priority" eval="80"/>
|
||||
<field name="inherit_id" ref="base.res_config_settings_view_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//div[hasclass('settings')]" position="inside">
|
||||
<div class="app_settings_block" data-string="Hotel" string="Hotel" data-key="hotel" groups="hotel.group_hotel_manager">
|
||||
<h2 id="default_hotel">Hotel Default</h2>
|
||||
<div class="row mt16 o_settings_container">
|
||||
<div class="col-xs-12 col-md-6 o_setting_box">
|
||||
<label for="default_pricelist_id"/>
|
||||
<div class="text-muted">
|
||||
Set pricelist default
|
||||
</div>
|
||||
<div class="content-group">
|
||||
<div class="mt16">
|
||||
<field name="default_pricelist_id" required="True" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-6 o_setting_box">
|
||||
<label for="default_restriction_id"/>
|
||||
<div class="text-muted">
|
||||
Set restrictions default
|
||||
</div>
|
||||
<div class="content-group">
|
||||
<div class="mt16">
|
||||
<field name="default_restriction_id" required="True" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<h2 id="default_hours">Hotel Default Hours</h2>
|
||||
<div class="row mt16 o_settings_container">
|
||||
<div class="col-xs-12 col-md-12 o_setting_box">
|
||||
<label for="tz_hotel"/>
|
||||
<div class="text-muted">
|
||||
Set time-zone
|
||||
</div>
|
||||
<div class="content-group">
|
||||
<div class="mt16">
|
||||
<field name="tz_hotel"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-6 o_setting_box">
|
||||
<label for="default_arrival_hour"/>
|
||||
<div class="text-muted">
|
||||
Set default arrival hour
|
||||
</div>
|
||||
<div class="content-group">
|
||||
<div class="mt16">
|
||||
<field name="default_arrival_hour" required="True" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-6 o_setting_box">
|
||||
<label for="default_departure_hour"/>
|
||||
<div class="text-muted">
|
||||
Set default departure hour
|
||||
</div>
|
||||
<div class="content-group">
|
||||
<div class="mt16">
|
||||
<field name="default_departure_hour" required="True" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user