mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[ADD]pms_api_rest: add rest service agencies
This commit is contained in:
@@ -41,3 +41,4 @@ from . import pms_board_service_line
|
||||
from . import pms_product
|
||||
from . import pms_sale_channel
|
||||
from . import pms_cancelation_rule
|
||||
from . import pms_agency
|
||||
|
||||
14
pms_api_rest/datamodels/pms_agency.py
Normal file
14
pms_api_rest/datamodels/pms_agency.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from marshmallow import fields
|
||||
|
||||
from odoo.addons.datamodel.core import Datamodel
|
||||
|
||||
|
||||
class PmsAgencySearchParam(Datamodel):
|
||||
_name = "pms.agency.search.param"
|
||||
name = fields.String(required=False, allow_none=True)
|
||||
|
||||
|
||||
class PmsAgencyInfo(Datamodel):
|
||||
_name = "pms.agency.info"
|
||||
id = fields.Integer(required=True, allow_none=False)
|
||||
name = fields.String(required=True, allow_none=False)
|
||||
Reference in New Issue
Block a user