From dc240af2b076827758184f3bb42c4568cf371674 Mon Sep 17 00:00:00 2001 From: Pablo Date: Fri, 30 Aug 2019 12:06:33 +0200 Subject: [PATCH] [WIP] update counter using current hotel --- .../static/src/js/views/calendar/hotel_calendar_model.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hotel_calendar/static/src/js/views/calendar/hotel_calendar_model.js b/hotel_calendar/static/src/js/views/calendar/hotel_calendar_model.js index c89eb6d31..b53974c66 100644 --- a/hotel_calendar/static/src/js/views/calendar/hotel_calendar_model.js +++ b/hotel_calendar/static/src/js/views/calendar/hotel_calendar_model.js @@ -106,7 +106,7 @@ return AbstractModel.extend({ }, search_count: function(domain) { - // TODO: add hotel_id domain based on modelName + domain.push(['hotel_id', '=', Session.hotel_id]); return this._rpc({ model: this.modelName, method: 'search_count',