From 788e56c26a4e4f4c3072dd3952effb5e427755ed Mon Sep 17 00:00:00 2001 From: miguelpadin Date: Tue, 30 Nov 2021 11:14:05 +0100 Subject: [PATCH] [IMP] pms-api-rest: add room_type_id @ room service --- pms_api_rest/datamodels/pms_room_info.py | 1 + pms_api_rest/services/room_services.py | 1 + 2 files changed, 2 insertions(+) diff --git a/pms_api_rest/datamodels/pms_room_info.py b/pms_api_rest/datamodels/pms_room_info.py index 7bf13106eac..5a5d5a4650a 100644 --- a/pms_api_rest/datamodels/pms_room_info.py +++ b/pms_api_rest/datamodels/pms_room_info.py @@ -7,3 +7,4 @@ class PmsRoomInfo(Datamodel): _name = "pms.room.info" id = fields.Integer(required=False, allow_none=True) name = fields.String(required=False, allow_none=True) + roomTypeId = fields.Integer(required=False, allow_none=True) diff --git a/pms_api_rest/services/room_services.py b/pms_api_rest/services/room_services.py index e3b178406f4..1727528a188 100644 --- a/pms_api_rest/services/room_services.py +++ b/pms_api_rest/services/room_services.py @@ -42,6 +42,7 @@ def get_rooms(self, room_search_param): PmsRoomInfo( id=room.id, name=room.name, + roomTypeId=room.room_type_id, ) ) return result_rooms