diff --git a/pms_api_rest/services/pms_pricelist_service.py b/pms_api_rest/services/pms_pricelist_service.py index 21061cdd1..3fa38af65 100644 --- a/pms_api_rest/services/pms_pricelist_service.py +++ b/pms_api_rest/services/pms_pricelist_service.py @@ -28,7 +28,11 @@ class PmsPricelistService(Component): auth="jwt_api_pms", ) def get_pricelists(self, pms_search_param, **args): - pricelists = self.env["product.pricelist"].search([]) + pricelists = self.env["product.pricelist"].search( + [ + ("is_pms_available", "=", True), + ] + ) if pms_search_param.pmsPropertyIds and pms_search_param.pmsPropertyId: raise ValidationError( _(