[FIX] pos_pms_link: pms.reservation domain was wrong

This commit is contained in:
Vicente
2023-07-18 13:47:32 +02:00
committed by Darío Lodeiros
parent 19821d5b6a
commit 3de5de6053

View File

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