[REF]pms_api_rest: changed search domain operator like to ilike

This commit is contained in:
braisab
2023-06-21 11:20:20 +02:00
committed by Darío Lodeiros
parent a211718563
commit 729891bd6c
2 changed files with 1 additions and 2 deletions

View File

@@ -28,7 +28,7 @@ class PmsProductService(Component):
def get_products(self, product_search_param):
domain = [("sale_ok", "=", True), ("is_pms_available", "=", True)]
if product_search_param.name:
domain.append(("name", "like", product_search_param.name))
domain.append(("name", "ilike", product_search_param.name))
if product_search_param.pmsPropertyId:
domain.extend(
[

View File

@@ -601,7 +601,6 @@ class PmsReservationService(Component):
checkinPartnerState=checkin_partner.state,
)
)
print(checkin_partners)
return checkin_partners
@restapi.method(