diff --git a/hotel_calendar/static/src/js/views/calendar/hotel_calendar_view.js b/hotel_calendar/static/src/js/views/calendar/hotel_calendar_view.js index d95848e3a..757f38e50 100644 --- a/hotel_calendar/static/src/js/views/calendar/hotel_calendar_view.js +++ b/hotel_calendar/static/src/js/views/calendar/hotel_calendar_view.js @@ -52,14 +52,13 @@ var CalendarMenu = Widget.extend({ this._rpc({ model: 'res.users', method: 'read', - args: [[Session.uid], ["pms_show_notifications", "pms_show_pricelist", "pms_show_availability", "pms_divide_rooms_by_capacity"]], + args: [[Session.uid], ["pms_show_notifications", "pms_show_pricelist", "pms_show_availability"]], context: Session.user_context, }) ).then(function(result) { this._show_notifications = result[0]['pms_show_notifications']; this._show_pricelist = result[0]['pms_show_pricelist']; this._show_availability = result[0]['pms_show_availability']; - this._show_divide_rooms_by_capacity = result[0]['pms_divide_rooms_by_capacity']; return this.update(); }.bind(this)); }, @@ -127,18 +126,6 @@ var CalendarMenu = Widget.extend({ window.location.reload(); }); }, - - toggle_show_divide_rooms_by_capacity: function() { - this._show_divide_rooms_by_capacity = !this._show_divide_rooms_by_capacity; - this._rpc({ - model: 'res.users', - method: 'write', - args: [[Session.uid], {pms_divide_rooms_by_capacity: this._show_divide_rooms_by_capacity}], - context: Session.user_context, - }).then(function () { - window.location.reload(); - }); - } }); var PMSCalendarView = AbstractView.extend({ diff --git a/hotel_calendar/static/src/js/views/calendar_management/hotel_calendar_management_model.js b/hotel_calendar/static/src/js/views/calendar_management/hotel_calendar_management_model.js index 607ed135b..421c2fee4 100644 --- a/hotel_calendar/static/src/js/views/calendar_management/hotel_calendar_management_model.js +++ b/hotel_calendar/static/src/js/views/calendar_management/hotel_calendar_management_model.js @@ -21,12 +21,12 @@ return AbstractModel.extend({ }, save_changes: function (params) { - params.splice(0, 0, false); // FIXME: ID=False because first parameter its an integer + // params.splice(0, 0, false); // FIXME: ID=False because first parameter its an integer return this._rpc({ model: this.modelName, method: 'save_changes', args: params, - //context: Session.user_context, + context: Session.user_context, }); }, diff --git a/hotel_calendar/static/src/xml/hotel_calendar_templates.xml b/hotel_calendar/static/src/xml/hotel_calendar_templates.xml index 49bddb9a5..4b579fafc 100644 --- a/hotel_calendar/static/src/xml/hotel_calendar_templates.xml +++ b/hotel_calendar/static/src/xml/hotel_calendar_templates.xml @@ -373,7 +373,6 @@