Skip to content

Commit

Permalink
[IMP] pms_api_rest: show reservation when property isn't specified in…
Browse files Browse the repository at this point in the history
… url
  • Loading branch information
saralb9 committed Feb 4, 2022
1 parent a6d61e0 commit 8291095
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pms_api_rest/services/pms_reservation_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ class PmsReservationService(Component):
def get_reservation(self, reservation_id, pms_search_param):
domain = list()
domain.append(("id", "=", reservation_id))
domain.append(("pms_property_id", "=", pms_search_param.pms_property_id))
if pms_search_param.pms_property_id:
domain.append(("pms_property_id", "=", pms_search_param.pms_property_id))
reservation = self.env["pms.reservation"].search(domain)
res = []
PmsReservationInfo = self.env.datamodels["pms.reservation.info"]
Expand Down

0 comments on commit 8291095

Please sign in to comment.