mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP]pms_api_rest: added short_name in room datamodel and service and added default_code in room_type datamodel and service
This commit is contained in:
@@ -47,6 +47,7 @@ class PmsRoomService(Component):
|
||||
name=room.name,
|
||||
roomTypeId=room.room_type_id,
|
||||
capacity=room.capacity,
|
||||
shortName=room.short_name,
|
||||
)
|
||||
)
|
||||
return result_rooms
|
||||
|
||||
@@ -58,6 +58,7 @@ class PmsRoomTypeService(Component):
|
||||
id=room.id,
|
||||
name=room.name,
|
||||
pms_property_ids=room.pms_property_ids.mapped("id"),
|
||||
defaultCode=room.default_code,
|
||||
)
|
||||
)
|
||||
return result_rooms
|
||||
|
||||
Reference in New Issue
Block a user