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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user