diff --git a/hotel/models/hotel_reservation.py b/hotel/models/hotel_reservation.py index f0380f539..97fb3d684 100644 --- a/hotel/models/hotel_reservation.py +++ b/hotel/models/hotel_reservation.py @@ -369,9 +369,8 @@ class HotelReservation(models.Model): vals['real_checkin'] = vals['checkin'] vals['real_checkout'] = vals['checkout'] record = super(HotelReservation, self).create(vals) - #~ if (record.state == 'draft' and record.folio_id.state == 'sale') or \ - #~ record.preconfirm: - #~ record.confirm() + if record.preconfirm: + record.confirm() return record @api.multi diff --git a/hotel/views/hotel_reservation_views.xml b/hotel/views/hotel_reservation_views.xml index a7228e928..3255d2741 100644 --- a/hotel/views/hotel_reservation_views.xml +++ b/hotel/views/hotel_reservation_views.xml @@ -60,13 +60,6 @@ icon="fa-compress" attrs="{'invisible':[('splitted', '=', False)]}" /> -