[WIP] Multi-Calendar

This commit is contained in:
QS5ELkMu
2018-12-10 22:23:30 +01:00
parent faf0146b82
commit 8784f982c8
3 changed files with 23 additions and 22 deletions

View File

@@ -80,9 +80,13 @@ odoo.define('hotel_calendar.MultiCalendar', function(require) {
}
},
remove_obroom_row: function(reserv) {
for (var calendar of this._calendars) {
calendar.removeOBRoomRow(reserv);
remove_obroom_row: function(reserv, only_active_calendar) {
if (only_active_calendar) {
this.get_active_calendar().removeOBRoomRow(reserv);
} else {
for (var calendar of this._calendars) {
calendar.removeOBRoomRow(reserv);
}
}
},