mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP] pms-api-rest: add min price to room type service
This commit is contained in:
committed by
Darío Lodeiros
parent
e2ff128336
commit
9236e1ca6c
@@ -17,5 +17,6 @@ class PmsRoomTypeInfo(Datamodel):
|
||||
defaultCode = fields.String(required=False, allow_none=True)
|
||||
classId = fields.Integer(required=False, allow_none=True)
|
||||
price = fields.Float(required=False, allow_none=True)
|
||||
minPrice = fields.Float(required=False, allow_none=True)
|
||||
defaultMaxAvail = fields.Integer(required=False, allow_none=True)
|
||||
defaultQuota = fields.Integer(required=False, allow_none=True)
|
||||
|
||||
@@ -60,6 +60,7 @@ class PmsRoomTypeService(Component):
|
||||
pmsPropertyIds=room.pms_property_ids.mapped("id"),
|
||||
defaultCode=room.default_code,
|
||||
price=round(room.list_price, 2),
|
||||
minPrice=room.min_price,
|
||||
classId=room.class_id,
|
||||
defaultMaxAvail=room.default_max_avail,
|
||||
defaultQuota=room.default_quota,
|
||||
|
||||
Reference in New Issue
Block a user