[FIX]pms_l10n_es: fixed test with new residence checkin fields

This commit is contained in:
Darío Lodeiros
2022-04-03 13:13:05 +02:00
parent 2cc8843f7c
commit 4eefb01496
2 changed files with 3 additions and 5 deletions

View File

@@ -1496,7 +1496,6 @@ class TestPmsCheckinPartner(TestPms):
"mobile": "666555444", "mobile": "666555444",
"phone": "123456789", "phone": "123456789",
"nationality_id": nationality_id.id, "nationality_id": nationality_id.id,
"state_id": state_id.id,
"residence_street": "Calle 123", "residence_street": "Calle 123",
"residence_street2": "Avda. Constitución 123", "residence_street2": "Avda. Constitución 123",
"residence_zip": "15700", "residence_zip": "15700",
@@ -1511,7 +1510,6 @@ class TestPmsCheckinPartner(TestPms):
{ {
"nationality_id": nationality_id, "nationality_id": nationality_id,
"residence_country_id": nationality_id, "residence_country_id": nationality_id,
"state_id": state_id,
"residence_state_id": state_id, "residence_state_id": state_id,
} }
) )

View File

@@ -46,9 +46,9 @@ class TestResPartner(TestPms):
self.partner_1 = self.env["res.partner"].create( self.partner_1 = self.env["res.partner"].create(
{ {
"name": "partner1", "name": "partner1",
"country_id": country_spain.id, "residence_country_id": country_spain.id,
"nationality_id": country_spain.id, "nationality_id": country_spain.id,
"state_id": state_madrid.id, "residence_state_id": state_madrid.id,
"birthdate_date": "2000-06-25", "birthdate_date": "2000-06-25",
"gender": "male", "gender": "male",
} }
@@ -56,7 +56,7 @@ class TestResPartner(TestPms):
# ASSERT # ASSERT
self.assertEqual( self.assertEqual(
self.partner_1.ine_code, self.partner_1.ine_code,
self.partner_1.state_id.ine_code, self.partner_1.residence_state_id.ine_code,
"The ine code for Spanish partners must match the ine" "The ine code for Spanish partners must match the ine"
" code of the state to which they belong", " code of the state to which they belong",
) )