mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX]pms_l10n_es: search only one checkin country reference in INE wizard
This commit is contained in:
@@ -2333,7 +2333,6 @@ class PmsFolio(models.Model):
|
||||
"partner_id": record.partner_id.id,
|
||||
"name": record.document_number,
|
||||
"category_id": record.document_type.id,
|
||||
"valid_from": record.document_expedition_date,
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
@@ -317,12 +317,12 @@ class WizardIne(models.TransientModel):
|
||||
# if there are some checkin partners in the same reservation
|
||||
if chk_part_same_reserv_with_checkin:
|
||||
# create partner with same country & state
|
||||
country_other = (
|
||||
chk_part_same_reserv_with_checkin.partner_id.nationality_id.id
|
||||
)
|
||||
state_other = (
|
||||
chk_part_same_reserv_with_checkin.partner_id.residence_state_id.id
|
||||
)
|
||||
country_other = chk_part_same_reserv_with_checkin[
|
||||
0
|
||||
].partner_id.nationality_id.id
|
||||
state_other = chk_part_same_reserv_with_checkin[
|
||||
0
|
||||
].partner_id.residence_state_id.id
|
||||
dummy_partner = self.env["res.partner"].create(
|
||||
{
|
||||
"name": "partner1",
|
||||
|
||||
Reference in New Issue
Block a user