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:
@@ -1,11 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<!-- keep noupdate to zero for development -->
|
||||
<data noupdate="1">
|
||||
<!-- Basic hotel -->
|
||||
<record id="main_hotel_room_type_restriction" model="hotel.room.type.restriction">
|
||||
<field name="name">Restriction Plan</field>
|
||||
</record>
|
||||
|
||||
<record id="main_hotel_property" model="hotel.property">
|
||||
<field name="name">My Hotel</field>
|
||||
<field name="company_id" ref="base.main_company"/>
|
||||
<field name="pricelist_id" ref="product.list0"/>
|
||||
<field name="restriction_id" ref="main_hotel_room_type_restriction"/>
|
||||
</record>
|
||||
|
||||
<record model="res.users" id="base.user_root">
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<!-- hotel.users -->
|
||||
|
||||
<record id="base.user_root" model="res.users">
|
||||
<field name="groups_id" eval="[(4,ref('hotel.group_hotel_manager'))]"/>
|
||||
<field name="groups_id" eval="[(4,ref('hotel.group_hotel_manager'))]"/>
|
||||
</record>
|
||||
|
||||
<record id="base.user_demo" model="res.users">
|
||||
@@ -364,6 +364,7 @@
|
||||
})]"/>
|
||||
</record>
|
||||
<!-- reservation of 3 single rooms for 3 people with 1 cancelled -->
|
||||
<!-- TODO: The third reservation is marked from State: Cancelled to Pending Entry at Folio creation -->
|
||||
<record id="hotel_folio_2" model="hotel.folio">
|
||||
<field name="partner_id" ref="base.res_partner_address_10"/>
|
||||
<field name="room_lines"
|
||||
@@ -406,19 +407,20 @@
|
||||
'state': 'confirm',
|
||||
})]"/>
|
||||
</record>
|
||||
|
||||
<!-- out of service room -->
|
||||
<record id="hotel_folio_4" model="hotel.folio">
|
||||
<field name="partner_id" ref="base.res_partner_1"/>
|
||||
<field name="partner_id" ref="main_hotel_property"/>
|
||||
<field name="reservation_type">out</field>
|
||||
<field name="closure_reason_id" ref="hotel_room_closure_reason_0"/>
|
||||
<field name="room_lines"
|
||||
eval="[(5, 0), (0, 0, {
|
||||
'pricelist_id': 1,
|
||||
'room_type_id': ref('hotel_room_type_1'),
|
||||
'checkin': DateTime.today().strftime('%Y-%m-%d'),
|
||||
'checkout': (DateTime.today() + timedelta(days=2)).strftime('%Y-%m-%d'),
|
||||
'adults': 1,
|
||||
'state': 'confirm',
|
||||
'reservation_type': 'out',
|
||||
'closure_reason_id': ref('hotel_room_closure_reason_0'),
|
||||
'out_service_description': 'Change of lighting',
|
||||
})]"/>
|
||||
</record>
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
<odoo>
|
||||
<data noupdate="1">
|
||||
|
||||
<record model="hotel.room.type.restriction">
|
||||
<field name="name">Default Restrictions</field>
|
||||
</record>
|
||||
|
||||
|
||||
<function id="default_pricelist_id"
|
||||
model="ir.default" name="set"
|
||||
eval="('res.config.settings', 'default_pricelist_id', 1)"/>
|
||||
|
||||
<function id="default_restriction_id"
|
||||
model="ir.default" name="set"
|
||||
eval="('res.config.settings', 'default_restriction_id', 1)"/>
|
||||
|
||||
<function id="default_generate_default_arrival_hour"
|
||||
model="ir.default" name="set"
|
||||
eval="('res.config.settings', 'default_arrival_hour', '14:00')"/>
|
||||
|
||||
<function id="default_generate_default_departure_hour"
|
||||
model="ir.default" name="set"
|
||||
eval="('res.config.settings', 'default_departure_hour', '12:00')"/>
|
||||
|
||||
</data>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user