From 5d72ef1472ad82d710e745b25f28a2c2a62c8bc2 Mon Sep 17 00:00:00 2001 From: miguelpadin Date: Tue, 11 Oct 2022 12:34:52 +0200 Subject: [PATCH] [FIX] pms-api-rest: fix filter by property @ cancelation rule service --- pms_api_rest/services/pms_cancelation_rule_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pms_api_rest/services/pms_cancelation_rule_service.py b/pms_api_rest/services/pms_cancelation_rule_service.py index 35c15bbf3..8bf2cb60a 100644 --- a/pms_api_rest/services/pms_cancelation_rule_service.py +++ b/pms_api_rest/services/pms_cancelation_rule_service.py @@ -34,7 +34,7 @@ class PmsCancelationRuleService(Component): ) if cancelation_rule_search_param.pmsPropertyId: domain.append( - ("pms_property_ids", "in", cancelation_rule_search_param.pmsPropertyId) + ("pms_property_ids", "in", [cancelation_rule_search_param.pmsPropertyId]) ) result_cancelation_rules = []