[IMP]pms: checkin partner residence state

This commit is contained in:
Darío Lodeiros
2022-03-20 22:12:30 +01:00
parent a23a26fb8c
commit 2bd9ca2ff0
7 changed files with 12 additions and 92 deletions

View File

@@ -255,10 +255,10 @@ class WizardIne(models.TransientModel):
spanish_guests_with_no_state,
)
)
state_id = self.env["res.country.state"].browse(
residence_state_id = self.env["res.country.state"].browse(
entry_from_spain["residence_state_id"][0]
) # .ine_code
ine_code = state_id.ine_code
ine_code = residence_state_id.ine_code
# get count of each result
num_spain = entry_from_spain["__count"]