mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP] pms-api-rest: add room_type_id @ room service
This commit is contained in:
committed by
Darío Lodeiros
parent
aac45dcbed
commit
69d618544e
@@ -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)
|
||||
|
||||
@@ -42,6 +42,7 @@ class PmsRoomService(Component):
|
||||
PmsRoomInfo(
|
||||
id=room.id,
|
||||
name=room.name,
|
||||
roomTypeId=room.room_type_id,
|
||||
)
|
||||
)
|
||||
return result_rooms
|
||||
|
||||
Reference in New Issue
Block a user