mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[WIP] Channel OTA info using template inheritance
This commit is contained in:
@@ -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'],
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user