mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP]pms_api_rest: added get address by display_name service
This commit is contained in:
@@ -3,8 +3,14 @@ from marshmallow import fields
|
||||
from odoo.addons.datamodel.core import Datamodel
|
||||
|
||||
|
||||
class ResCityZipSearchParam(Datamodel):
|
||||
_name = "res.city.zip.search.param"
|
||||
address = fields.String(required=False, allow_none=False)
|
||||
class ResCityZipInfo(Datamodel):
|
||||
_name = "res.city.zip.info"
|
||||
resZipId = fields.Integer(required=False, allow_none=True)
|
||||
cityId = fields.String(required=False, allow_none=True)
|
||||
stateId = fields.Integer(required=False, allow_none=True)
|
||||
stateName = fields.String(required=False, allow_none=True)
|
||||
countryId = fields.Integer(required=False, allow_none=True)
|
||||
zipCode = fields.String(required=False, allow_none=True)
|
||||
|
||||
Reference in New Issue
Block a user