-
-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a91bc67
commit 70720b0
Showing
5 changed files
with
24 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,21 @@ | ||
from marshmallow import fields, Schema | ||
from typing import List | ||
from marshmallow import Schema, fields | ||
|
||
from odoo.addons.datamodel.core import Datamodel | ||
from .pms_reservation_short_info import PmsReservationShortInfo | ||
|
||
|
||
class PmsReservationSchema(Schema): | ||
|
||
id = fields.Integer(required=True, allow_none=False) | ||
checkin = fields.String(required=True, allow_none=True) | ||
checkout = fields.String(required=True, allow_none=True) | ||
preferredRoomId = fields.String(required=False, allow_none=True) | ||
roomTypeId = fields.String(required=False, allow_none=True) | ||
priceTotal = fields.Float(required=False, allow_none=True) | ||
adults = fields.Integer(required=False, allow_none=True) | ||
pricelist = fields.String(required=False, allow_none=True) | ||
|
||
|
||
|
||
class PmsFolioShortInfo(Datamodel): | ||
_name = "pms.folio.short.info" | ||
|
||
id = fields.Integer(required=False, allow_none=True) | ||
name = fields.String(required=False, allow_none=True) | ||
partnerName = fields.String(required=False, allow_none=True) | ||
partnerPhone = fields.String(required=False, allow_none=True) | ||
partnerEmail = fields.String(required=False, allow_none=True) | ||
channelType = fields.String(required=False, allow_none=True) | ||
agency = fields.String(required=False, allow_none=True) | ||
# paymentState = fields.String(required=False, allow_none=True) | ||
state = fields.String(required=False, allow_none=True) | ||
pendingAmount = fields.Float(required=False, allow_none=True) | ||
reservations = fields.List(fields.Nested(PmsReservationSchema)) | ||
|
||
reservations = fields.List(fields.Dict(required=False, allow_none=True)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.