mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX]pms_l10n_es: fixed test with new residence checkin fields
This commit is contained in:
@@ -1496,7 +1496,6 @@ class TestPmsCheckinPartner(TestPms):
|
||||
"mobile": "666555444",
|
||||
"phone": "123456789",
|
||||
"nationality_id": nationality_id.id,
|
||||
"state_id": state_id.id,
|
||||
"residence_street": "Calle 123",
|
||||
"residence_street2": "Avda. Constitución 123",
|
||||
"residence_zip": "15700",
|
||||
@@ -1511,7 +1510,6 @@ class TestPmsCheckinPartner(TestPms):
|
||||
{
|
||||
"nationality_id": nationality_id,
|
||||
"residence_country_id": nationality_id,
|
||||
"state_id": state_id,
|
||||
"residence_state_id": state_id,
|
||||
}
|
||||
)
|
||||
|
||||
@@ -46,9 +46,9 @@ class TestResPartner(TestPms):
|
||||
self.partner_1 = self.env["res.partner"].create(
|
||||
{
|
||||
"name": "partner1",
|
||||
"country_id": country_spain.id,
|
||||
"residence_country_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",
|
||||
"gender": "male",
|
||||
}
|
||||
@@ -56,7 +56,7 @@ class TestResPartner(TestPms):
|
||||
# ASSERT
|
||||
self.assertEqual(
|
||||
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"
|
||||
" code of the state to which they belong",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user