mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[UPD] Task 966 - calendar bells
This commit is contained in:
@@ -52,6 +52,7 @@ class BusHotelCalendar(models.TransientModel):
|
||||
'price_room_services_set': vals['price_room_services_set'],
|
||||
'amount_total': vals['pending_amount'] + vals['invoices_paid'],
|
||||
'real_dates': vals['real_dates'],
|
||||
'channel_type': vals['channel_type'],
|
||||
},
|
||||
'tooltip': {
|
||||
'folio_name': vals['folio_name'],
|
||||
|
||||
@@ -94,7 +94,9 @@ class HotelReservation(models.Model):
|
||||
'state': reserv['state'],
|
||||
'price_room_services_set': reserv['price_room_services_set'],
|
||||
'amount_total': reserv['amount_total'],
|
||||
'real_dates': [reserv['real_checkin'], reserv['real_checkout']]})
|
||||
'real_dates': [reserv['real_checkin'], reserv['real_checkout']],
|
||||
'channel_type': reserv['channel_type'],
|
||||
})
|
||||
json_reservation_tooltips.update({
|
||||
reserv['id']: {
|
||||
'folio_name': reserv['folio_name'],
|
||||
|
||||
@@ -76,7 +76,7 @@ var PMSHotelCalendarController = PMSCalendarController.include({
|
||||
}
|
||||
else if (notif[1]['type'] === 'reservation') {
|
||||
var reserv = notif[1]['reservation'];
|
||||
if (reserv['external_id']) {
|
||||
if (reserv['channel_type'] == 'web') {
|
||||
if (notif[1]['action'] === 'create') {
|
||||
this._play_sound(this.SOUNDS.BOOK_NEW);
|
||||
} else if (notif[1]['action'] !== 'unlink' && reserv['state'] === 'cancelled') {
|
||||
|
||||
Reference in New Issue
Block a user