mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP] pms_api_rest: add room type class service
This commit is contained in:
@@ -4,6 +4,7 @@ from . import pms_folio
|
||||
|
||||
from . import pms_room
|
||||
from . import pms_room_type
|
||||
from . import pms_room_type_class
|
||||
|
||||
from . import pms_reservation
|
||||
|
||||
|
||||
17
pms_api_rest/datamodels/pms_room_type_class.py
Normal file
17
pms_api_rest/datamodels/pms_room_type_class.py
Normal file
@@ -0,0 +1,17 @@
|
||||
from marshmallow import fields
|
||||
|
||||
from odoo.addons.datamodel.core import Datamodel
|
||||
|
||||
|
||||
class PmsRoomTypeClassSearchParam(Datamodel):
|
||||
_name = "pms.room.type.class.search.param"
|
||||
id = fields.Integer(required=False, allow_none=True)
|
||||
name = fields.String(required=False, allow_none=True)
|
||||
pms_property_ids = fields.List(fields.Integer(), required=False)
|
||||
|
||||
|
||||
class PmsRoomTypeClassInfo(Datamodel):
|
||||
_name = "pms.room.type.class.info"
|
||||
id = fields.Integer(required=False, allow_none=True)
|
||||
name = fields.String(required=False, allow_none=True)
|
||||
pms_property_ids = fields.List(fields.Integer(), required=False)
|
||||
Reference in New Issue
Block a user