[ADD]pms_api_rest: product pms enabled configuration

This commit is contained in:
Darío Lodeiros
2022-11-20 10:29:42 +01:00
parent 0ad166f5db
commit c6beea4c65

View File

@@ -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: