[IMP] Swap

This commit is contained in:
QS5ELkMu
2018-12-15 17:37:34 +01:00
parent 402b92defc
commit 91e84d5a03
3 changed files with 37 additions and 51 deletions

View File

@@ -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");

View File

@@ -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);
}
},