[IMP] pms-api-rest: add room_type_id @ room service

This commit is contained in:
miguelpadin
2021-11-30 11:14:05 +01:00
committed by Darío Lodeiros
parent aac45dcbed
commit 69d618544e
2 changed files with 2 additions and 0 deletions

View File

@@ -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)

View File

@@ -42,6 +42,7 @@ class PmsRoomService(Component):
PmsRoomInfo(
id=room.id,
name=room.name,
roomTypeId=room.room_type_id,
)
)
return result_rooms