From 3de5de605308fdbc1d78ead4eb6c37ba3b555937 Mon Sep 17 00:00:00 2001 From: Vicente Date: Tue, 18 Jul 2023 13:47:32 +0200 Subject: [PATCH] [FIX] pos_pms_link: pms.reservation domain was wrong --- pos_pms_link/static/src/js/models.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/pos_pms_link/static/src/js/models.js b/pos_pms_link/static/src/js/models.js index 28bea9493..0e0648d04 100644 --- a/pos_pms_link/static/src/js/models.js +++ b/pos_pms_link/static/src/js/models.js @@ -300,13 +300,11 @@ odoo.define('pos_pms_link.models', function (require) { (month<10 ? '0' : '') + month + '-' + (day<10 ? '0' : '') + day; - var domain = [ - '|', - '&', - ['state', '=', 'onboard'], - ['checkout', '=', current_date], - ['state', '!=', 'cancel'] - ]; + var domain = [ + '|', ['state', '=', 'onboard'], + '&', ['checkout', '=', current_date], + ['state', '!=', 'cancel'] + ]; if (self.config_id && self.config.reservation_allowed_propertie_ids) domain.push(['pms_property_id', 'in', self.config.reservation_allowed_propertie_ids]); return domain; },