mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[ADD] pms_api_rest: add dashboard service
This commit is contained in:
committed by
Darío Lodeiros
parent
69bb04baa8
commit
21ce6ac762
@@ -60,3 +60,4 @@ from . import pms_mail
|
||||
from . import pms_notification
|
||||
from . import pms_reservation_message
|
||||
from . import pms_avail
|
||||
from . import pms_dashboard
|
||||
|
||||
18
pms_api_rest/datamodels/pms_dashboard.py
Normal file
18
pms_api_rest/datamodels/pms_dashboard.py
Normal file
@@ -0,0 +1,18 @@
|
||||
from marshmallow import fields
|
||||
|
||||
from odoo.addons.datamodel.core import Datamodel
|
||||
|
||||
|
||||
class PmsDashboardCheckinsSearchParam(Datamodel):
|
||||
_name = "pms.dashboard.checkins.search.param"
|
||||
dateTo = fields.String(required=False, allow_none=True)
|
||||
dateFrom = fields.String(required=False, allow_none=True)
|
||||
|
||||
|
||||
class PmsDashboardCheckins(Datamodel):
|
||||
_name = "pms.dashboard.checkins"
|
||||
id = fields.Integer(required=True, allow_none=False)
|
||||
checkinPartnerState = fields.String(required=False, allow_none=True)
|
||||
date = fields.String(required=False, allow_none=True)
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@ class PmsFolioSearchParam(Datamodel):
|
||||
dateTo = fields.String(required=False, allow_none=True)
|
||||
filter = fields.String(required=False, allow_none=True)
|
||||
filterByState = fields.String(required=False, allow_none=True)
|
||||
last = fields.Boolean(required=False, allow_none=True)
|
||||
|
||||
|
||||
class PmsFolioInfo(Datamodel):
|
||||
|
||||
Reference in New Issue
Block a user