mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP] pms_api_rest: add ubication in room datamodel and service
This commit is contained in:
@@ -18,3 +18,4 @@ class PmsRoomInfo(Datamodel):
|
||||
capacity = fields.Integer(required=False, allow_none=True)
|
||||
shortName = fields.String(required=False, allow_none=True)
|
||||
roomTypeClassId = fields.Integer(required=False, allow_none=True)
|
||||
ubicationId = fields.Integer(required=False, allow_none=True)
|
||||
|
||||
@@ -52,6 +52,7 @@ class PmsRoomService(Component):
|
||||
capacity=room.capacity,
|
||||
shortName=room.short_name,
|
||||
roomTypeClassId=room.room_type_id.class_id,
|
||||
ubicationId=room.ubication_id,
|
||||
)
|
||||
)
|
||||
return result_rooms
|
||||
|
||||
Reference in New Issue
Block a user