From 2dad7ad3aa5f5a41b3ce6f37a591cdbc261e021a Mon Sep 17 00:00:00 2001 From: FrankC013 Date: Wed, 8 May 2024 12:41:32 +0200 Subject: [PATCH] [FIX] pms: fix confirm reservation in data demo --- pms/demo/pms_folio.xml | 196 +++++++++++++++++++++++++++++++---------- 1 file changed, 150 insertions(+), 46 deletions(-) diff --git a/pms/demo/pms_folio.xml b/pms/demo/pms_folio.xml index 3ce5008f8f..7f07f2951f 100644 --- a/pms/demo/pms_folio.xml +++ b/pms/demo/pms_folio.xml @@ -15,7 +15,6 @@ 'checkin': (DateTime.today() + timedelta(days=14)), 'checkout': (DateTime.today() + timedelta(days=16)), 'adults': 2, - 'state': 'confirm', 'board_service_room_id': ref('pms_board_service_room_eco_half_board'), 'partner_requests': 'Vegan breakfast', })]" @@ -23,6 +22,12 @@ + + + @@ -41,7 +46,6 @@ 'checkin': (DateTime.today() + timedelta(days=14)), 'checkout': (DateTime.today() + timedelta(days=16)), 'adults': 1, - 'state': 'confirm', 'partner_requests': 'Quite room.' }), (0, 0, { @@ -50,7 +54,6 @@ 'checkin': (DateTime.today() + timedelta(days=14)), 'checkout': (DateTime.today() + timedelta(days=16)), 'adults': 1, - 'state': 'confirm', 'partner_requests': 'Quite room.' }), (0, 0, { @@ -63,6 +66,12 @@ })]" /> + + + @@ -178,13 +187,18 @@ 'checkout': (DateTime.today() + timedelta(days=16)), 'adults': 1, 'children':1, - 'state': 'confirm', 'board_service_room_id': ref('pms_board_service_room_double_half_board'), 'partner_requests': 'Vegan food.' })]" /> + + + @@ -198,11 +212,16 @@ 'checkin': (DateTime.today() + timedelta(days=15)), 'checkout': (DateTime.today() + timedelta(days=16)), 'adults': 1, - 'state': 'confirm', 'board_service_room_id': ref('pms_board_service_room_triple_full_board'), })]" /> + + + @@ -220,11 +239,16 @@ 'checkin': (DateTime.today() + timedelta(days=15)), 'checkout': (DateTime.today() + timedelta(days=16)), 'adults': 10, - 'state': 'confirm', 'partner_requests': '10 bottles of water, 10 notebooks and 10 pens.' })]" /> + + + @@ -242,13 +266,18 @@ 'checkin': (DateTime.today() + timedelta(days=16)), 'checkout': (DateTime.today() + timedelta(days=17)), 'adults': 1, - 'state': 'confirm', 'reservation_type': 'out', 'closure_reason_id': ref('pms_room_closure_reason_maintenance'), 'out_service_description': 'Change of lighting', })]" /> + + + @@ -289,7 +318,6 @@ 'checkin': (DateTime.today() + timedelta(days=17)), 'checkout': (DateTime.today() + timedelta(days=18)), 'adults': 2, - 'state': 'confirm', }), (0, 0, { 'pricelist_id': ref('product.list0'), @@ -297,7 +325,6 @@ 'checkin': (DateTime.today() + timedelta(days=17)), 'checkout': (DateTime.today() + timedelta(days=18)), 'adults': 1, - 'state': 'confirm', 'sale_channel_origin_id': ref('pms.main_pms_sale_channel_door') }), (0, 0, { @@ -306,7 +333,6 @@ 'checkin': (DateTime.today() + timedelta(days=17)), 'checkout': (DateTime.today() + timedelta(days=18)), 'adults': 1, - 'state': 'confirm', }), (0, 0, { 'pricelist_id': ref('product.list0'), @@ -314,7 +340,6 @@ 'checkin': (DateTime.today() + timedelta(days=17)), 'checkout': (DateTime.today() + timedelta(days=18)), 'adults': 1, - 'state': 'confirm', 'sale_channel_origin_id': ref('pms.main_pms_sale_channel_mail') }), (0, 0, { @@ -323,7 +348,6 @@ 'checkin': (DateTime.today() + timedelta(days=17)), 'checkout': (DateTime.today() + timedelta(days=18)), 'adults': 2, - 'state': 'confirm', }), (0, 0, { 'pricelist_id': ref('product.list0'), @@ -331,7 +355,6 @@ 'checkin': (DateTime.today() + timedelta(days=17)), 'checkout': (DateTime.today() + timedelta(days=18)), 'adults': 2, - 'state': 'confirm', }), (0, 0, { 'pricelist_id': ref('product.list0'), @@ -339,7 +362,6 @@ 'checkin': (DateTime.today() + timedelta(days=17)), 'checkout': (DateTime.today() + timedelta(days=18)), 'adults': 3, - 'state': 'confirm', 'sale_channel_origin_id': ref('pms.main_pms_sale_channel_mail') }), (0, 0, { @@ -348,10 +370,15 @@ 'checkin': (DateTime.today() + timedelta(days=17)), 'checkout': (DateTime.today() + timedelta(days=18)), 'adults': 1, - 'state': 'confirm', })]" /> + + + @@ -370,7 +397,6 @@ 'checkin': (DateTime.today() + timedelta(days=19)), 'checkout': (DateTime.today() + timedelta(days=20)), 'adults': 2, - 'state': 'confirm', 'partner_requests': '2 extra towels needed.' }), (0, 0, { 'pricelist_id': ref('product.list0'), @@ -378,17 +404,21 @@ 'checkin': (DateTime.today() + timedelta(days=19)), 'checkout': (DateTime.today() + timedelta(days=20)), 'adults': 2, - 'state': 'confirm', }), (0, 0, { 'pricelist_id': ref('product.list0'), 'preferred_room_id': ref('pms_room_parking_01'), 'checkin': (DateTime.today() + timedelta(days=19)), 'checkout': (DateTime.today() + timedelta(days=20)), 'adults': 1, - 'state': 'confirm', })]" /> + + + @@ -403,13 +433,18 @@ 'checkin': (DateTime.today() + timedelta(days=19)), 'checkout': (DateTime.today() + timedelta(days=20)), 'adults': 1, - 'state': 'confirm', 'reservation_type': 'out', 'closure_reason_id': ref('pms_room_closure_reason_vip_privacy'), 'out_service_description': 'Room next to noisy guests.', })]" /> + + + @@ -428,7 +463,6 @@ 'checkin': (DateTime.today() + timedelta(days=19)), 'checkout': (DateTime.today() + timedelta(days=20)), 'adults': 1, - 'state': 'confirm', }), (0, 0, { 'pricelist_id': ref('product.list0'), @@ -436,7 +470,6 @@ 'checkin': (DateTime.today() + timedelta(days=19)), 'checkout': (DateTime.today() + timedelta(days=20)), 'adults': 1, - 'state': 'confirm', 'sale_channel_origin_id': ref('pms.main_pms_sale_channel_door'), }), (0, 0, { @@ -445,11 +478,16 @@ 'checkin': (DateTime.today() + timedelta(days=19)), 'checkout': (DateTime.today() + timedelta(days=20)), 'adults': 3, - 'state': 'confirm', 'partner_requests': '1 extra towel.' })]" /> + + + @@ -468,7 +506,6 @@ 'checkin': (DateTime.today() + timedelta(days=19)), 'checkout': (DateTime.today() + timedelta(days=20)), 'adults': 2, - 'state': 'confirm', }), (0, 0, { 'pricelist_id': ref('product.list0'), @@ -479,8 +516,13 @@ 'sale_channel_origin_id': ref('pms.main_pms_sale_channel_door'), })]" /> - + + + @@ -494,11 +536,16 @@ 'checkin': (DateTime.today() + timedelta(days=19)), 'checkout': (DateTime.today() + timedelta(days=21)), 'adults': 1, - 'state': 'confirm', 'partner_requests': 'Smart screen, projector and sound system.' })]" /> + + + @@ -532,7 +579,6 @@ 'checkout': (DateTime.today() + timedelta(days=22)), 'adults': 1, 'children': 1, - 'state': 'confirm', 'arrival_hour': '12:00', 'departure_hour': '12:30', 'board_service_room_id': ref('pms_board_service_room_double_half_board'), @@ -540,6 +586,12 @@ })]" /> + + + @@ -558,11 +610,16 @@ 'checkin': (DateTime.today() + timedelta(days=21)), 'checkout': (DateTime.today() + timedelta(days=22)), 'adults': 1, - 'state': 'confirm', 'closure_reason_id': ref('pms_room_closure_reason_vip_privacy'), })]" /> + + + @@ -602,7 +659,6 @@ 'checkin': (DateTime.today() + timedelta(days=23)), 'checkout': (DateTime.today() + timedelta(days=24)), 'adults': 1, - 'state': 'confirm', }), (0, 0, { 'pricelist_id': ref('product.list0'), @@ -610,7 +666,6 @@ 'checkin': (DateTime.today() + timedelta(days=23)), 'checkout': (DateTime.today() + timedelta(days=24)), 'adults': 1, - 'state': 'confirm', 'board_service_room_id': ref('pms_board_service_room_single_half_board'), }), (0, 0, { @@ -619,7 +674,6 @@ 'checkin': (DateTime.today() + timedelta(days=23)), 'checkout': (DateTime.today() + timedelta(days=24)), 'adults': 1, - 'state': 'confirm', 'board_service_room_id': ref('pms_board_service_room_single_breakfast'), 'sale_channel_origin_id': ref('pms.main_pms_sale_channel_phone') }), @@ -629,12 +683,17 @@ 'checkin': (DateTime.today() + timedelta(days=23)), 'checkout': (DateTime.today() + timedelta(days=24)), 'adults': 1, - 'state': 'confirm', 'board_service_room_id': ref('pms_board_service_room_single_full_board'), 'sale_channel_origin_id': ref('pms.main_pms_sale_channel_phone') })]" /> + + + @@ -651,7 +710,6 @@ 'checkout': (DateTime.today() + timedelta(days=24)), 'adults': 1, 'children': 1, - 'state': 'confirm', 'partner_requests': '1 extra towel needed.' }), (0, 0, { @@ -661,7 +719,6 @@ 'checkout': (DateTime.today() + timedelta(days=24)), 'adults': 1, 'children': 1, - 'state': 'confirm', }), (0, 0, { 'pricelist_id': ref('product.list0'), @@ -670,12 +727,17 @@ 'checkout': (DateTime.today() + timedelta(days=24)), 'adults': 2, 'children': 1, - 'state': 'confirm', 'board_service_room_id': ref('pms_board_service_room_triple_full_board'), 'sale_channel_origin_id': ref('main_pms_sale_channel_mail') })]" /> + + + @@ -691,7 +753,6 @@ 'checkin': (DateTime.today() + timedelta(days=24)), 'checkout': (DateTime.today() + timedelta(days=25)), 'adults': 1, - 'state': 'confirm', 'arrival_hour': '17:00', 'departure_hour': '12:15', 'board_service_room_id': ref('pms_board_service_room_single_full_board'), @@ -702,13 +763,18 @@ 'checkin': (DateTime.today() + timedelta(days=24)), 'checkout': (DateTime.today() + timedelta(days=25)), 'adults': 1, - 'state': 'confirm', 'arrival_hour': '16:00', 'departure_hour': '11:15', 'board_service_room_id': ref('pms_board_service_room_single_full_board'), })]" /> + + + @@ -728,7 +794,6 @@ 'checkin': (DateTime.today() + timedelta(days=24)), 'checkout': (DateTime.today() + timedelta(days=25)), 'adults': 1, - 'state': 'confirm', 'arrival_hour': '17:00', 'departure_hour': '12:15', 'board_service_room_id': ref('pms_board_service_room_double_half_board'), @@ -740,12 +805,17 @@ 'checkin': (DateTime.today() + timedelta(days=24)), 'checkout': (DateTime.today() + timedelta(days=25)), 'adults': 1, - 'state': 'confirm', 'arrival_hour': '16:00', 'departure_hour': '11:15', })]" /> + + + @@ -763,12 +833,17 @@ 'checkin': (DateTime.today() + timedelta(days=24)), 'checkout': (DateTime.today() + timedelta(days=25)), 'adults': 1, - 'state': 'confirm', 'arrival_hour': '09:00', 'departure_hour': '12:00', })]" /> + + + @@ -783,12 +858,17 @@ 'checkin': (DateTime.today() + timedelta(days=25)), 'checkout': (DateTime.today() + timedelta(days=32)), 'adults': 1, - 'state': 'confirm', 'board_service_room_id': ref('pms_board_service_room_eco_full_board'), 'partner_requests': 'Vegan food.' })]" /> + + + @@ -807,11 +887,16 @@ 'checkin': (DateTime.today() + timedelta(days=25)), 'checkout': (DateTime.today() + timedelta(days=32)), 'adults': 1, - 'state': 'confirm', 'board_service_room_id': ref('pms_board_service_room_single_half_board'), })]" /> + + + @@ -829,12 +914,17 @@ 'checkin': (DateTime.today() + timedelta(days=25)), 'checkout': (DateTime.today() + timedelta(days=32)), 'adults': 1, - 'state': 'confirm', 'board_service_room_id': ref('pms_board_service_room_single_full_board'), 'partner_requests': 'picnic for 1st lunch' })]" /> + + + @@ -853,7 +943,6 @@ 'checkin': (DateTime.today() + timedelta(days=25)), 'checkout': (DateTime.today() + timedelta(days=31)), 'adults': 2, - 'state': 'confirm', 'board_service_room_id': ref('pms_board_service_room_double_half_board'), }), (0, 0, { @@ -862,11 +951,16 @@ 'checkin': (DateTime.today() + timedelta(days=25)), 'checkout': (DateTime.today() + timedelta(days=32)), 'adults': 2, - 'state': 'confirm', 'board_service_room_id': ref('pms_board_service_room_double_half_board'), })]" /> + + + @@ -902,11 +996,16 @@ 'checkin': (DateTime.today() + timedelta(days=25)), 'checkout': (DateTime.today() + timedelta(days=26)), 'adults': 1, - 'state': 'confirm', 'closure_reason_id': ref('pms_room_closure_reason_vip_privacy'), })]" /> + + + @@ -947,8 +1046,13 @@ 'checkout': (DateTime.today() + timedelta(days=30)), 'adults': 1, 'children':1, - 'state': 'confirm', })]" /> + + +