mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[REF]pms_api_rest: changed search domain operator like to ilike
This commit is contained in:
@@ -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(
|
||||
[
|
||||
|
||||
@@ -601,7 +601,6 @@ class PmsReservationService(Component):
|
||||
checkinPartnerState=checkin_partner.state,
|
||||
)
|
||||
)
|
||||
print(checkin_partners)
|
||||
return checkin_partners
|
||||
|
||||
@restapi.method(
|
||||
|
||||
Reference in New Issue
Block a user