mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP] Swap
This commit is contained in:
@@ -372,18 +372,6 @@ var PMSCalendarController = AbstractController.extend({
|
||||
res_id: ev.detail.reservationObj.id,
|
||||
views: [[false, 'form']]
|
||||
});
|
||||
// self._model.call('get_formview_id', [res_id, Session.user_context]).then(function(view_id){
|
||||
// var pop = new ViewDialogs.FormViewDialog(self, {
|
||||
// res_model: 'hotel.folio',
|
||||
// res_id: res_id,
|
||||
// title: _t("Open: ") + ev.detail.reservationObj.title,
|
||||
// view_id: view_id
|
||||
// //readonly: false
|
||||
// }).open();
|
||||
// pop.on('write_completed', self, function(){
|
||||
// self.trigger('changed_value');
|
||||
// });
|
||||
// });
|
||||
});
|
||||
this._multi_calendar.on_calendar('hcalOnUnifyReservations', function(ev){
|
||||
console.log("TO UNIFY");
|
||||
|
||||
@@ -208,7 +208,7 @@ odoo.define('hotel_calendar.MultiCalendar', function(require) {
|
||||
}
|
||||
|
||||
for (var calendar of this._calendars) {
|
||||
calendar.addReservations(this._dataset['reservations']);
|
||||
calendar.addReservations(reservations);
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user