mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP]14.0-pms_api_rest: added residence state name in checkin partner datamodel
This commit is contained in:
@@ -24,6 +24,7 @@ class PmsCheckinPartnerInfo(Datamodel):
|
||||
residenceCity = fields.String(required=False, allow_none=True)
|
||||
nationality = fields.Integer(required=False, allow_none=True)
|
||||
countryState = fields.Integer(required=False, allow_none=True)
|
||||
countryStateName = fields.String(required=False, allow_none=True)
|
||||
countryId = fields.Integer(required=False, allow_none=True)
|
||||
checkinPartnerState = fields.String(required=False, allow_none=True)
|
||||
actionOnBoard = fields.Boolean(required=False, allow_none=True)
|
||||
|
||||
@@ -596,6 +596,9 @@ class PmsReservationService(Component):
|
||||
countryState=checkin_partner.residence_state_id.id
|
||||
if checkin_partner.residence_state_id
|
||||
else None,
|
||||
countryStateName=checkin_partner.residence_state_id.name
|
||||
if checkin_partner.residence_state_id
|
||||
else None,
|
||||
countryId=checkin_partner.residence_country_id.id
|
||||
if checkin_partner.residence_country_id
|
||||
else None,
|
||||
|
||||
Reference in New Issue
Block a user