[WIP] Channel OTA info using template inheritance

This commit is contained in:
Pablo
2019-01-21 18:55:46 +01:00
parent 91bc3e5760
commit c6018601a1
5 changed files with 31 additions and 9 deletions

View File

@@ -75,6 +75,7 @@ class BusHotelCalendar(models.TransientModel):
'amount_paid': vals['amount_paid'],
'type': vals['reservation_type'],
'out_service_description': vals['out_service_description'],
'channel_type': vals['channel_type'],
}
}

View File

@@ -126,6 +126,7 @@ class HotelReservation(models.Model):
or _('No reason given'),
'splitted': reserv['splitted'],
'reserv_chunks': reserv_chunks,
'channel_type': reserv['channel_type'],
# TODO: Add Board Services and Extra Service as Cradle, Bed, ...
}
})
@@ -194,7 +195,7 @@ class HotelReservation(models.Model):
SELECT
hr.id, hr.room_id, hr.adults, hr.children, hr.checkin, hr.checkout, hr.reserve_color, hr.reserve_color_text,
hr.splitted, hr.parent_reservation, hr.overbooking, hr.state, hr.real_checkin, hr.real_checkout,
hr.out_service_description, hr.arrival_hour, hr.departure_hour,
hr.out_service_description, hr.arrival_hour, hr.departure_hour, hr.channel_type, hr.channel_type,
hf.id as folio_id, hf.name as folio_name, hf.reservation_type, hf.amount_total, hf.pending_amount,
@@ -418,6 +419,7 @@ class HotelReservation(models.Model):
'out_service_description': self.out_service_description
or _('No reason given'),
'real_dates': [self.real_checkin, self.real_checkout],
'channel_type': self.channel_type,
}
@api.multi