From c6beea4c658e3b019ae6f270c0a847ebd8e334f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dar=C3=ADo=20Lodeiros?= Date: Sun, 20 Nov 2022 10:29:42 +0100 Subject: [PATCH] [ADD]pms_api_rest: product pms enabled configuration --- pms_api_rest/services/pms_product_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pms_api_rest/services/pms_product_service.py b/pms_api_rest/services/pms_product_service.py index a45176e6a..c550c799c 100644 --- a/pms_api_rest/services/pms_product_service.py +++ b/pms_api_rest/services/pms_product_service.py @@ -26,7 +26,7 @@ class PmsProductService(Component): auth="jwt_api_pms", ) def get_products(self, product_search_param): - domain = [("sale_ok", "=", True)] + domain = [("sale_ok", "=", True), ("is_pms_available", "=", True)] if product_search_param.name: domain.append(("name", "like", product_search_param.name)) if product_search_param.pmsPropertyId: