mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[ADD]pms_api_rest: product pms enabled configuration
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user