From 2c73ee26e6d854b3ed380686ce86f570514fa946 Mon Sep 17 00:00:00 2001 From: Dario Lodeiros Date: Wed, 30 Jan 2019 16:27:11 +0100 Subject: [PATCH] [WIP] Checkin Workflow --- hotel/models/hotel_reservation.py | 3 ++- hotel/views/hotel_checkin_partner_views.xml | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/hotel/models/hotel_reservation.py b/hotel/models/hotel_reservation.py index 332178131..d66e9c6dc 100644 --- a/hotel/models/hotel_reservation.py +++ b/hotel/models/hotel_reservation.py @@ -1058,8 +1058,9 @@ class HotelReservation(models.Model): 'view_id': view_id, 'context': { 'reservation_id': reservation_id, + 'default_reservation_id': reservation_id, + 'default_folio_id': self.folio_id, }, - 'flags': {'initial_mode': 'edit'}, 'domain': [('reservation_id', '=', self.id)], 'target': 'new', } diff --git a/hotel/views/hotel_checkin_partner_views.xml b/hotel/views/hotel_checkin_partner_views.xml index bbbbac859..ca50a8536 100644 --- a/hotel/views/hotel_checkin_partner_views.xml +++ b/hotel/views/hotel_checkin_partner_views.xml @@ -4,7 +4,7 @@ hotel.checkin.partner 20 -