Skip to content

Commit

Permalink
Merge PR #412 into 12.0
Browse files Browse the repository at this point in the history
Signed-off-by thomaspaulb
  • Loading branch information
OCA-git-bot committed Mar 19, 2024
2 parents 3cbcdcf + 2711155 commit 35d7eb8
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions l10n_nl_kvk/tests/test_l10n_nl_kvk.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,13 +345,19 @@ def test_13_api_load_with_wizard(self):
self.assertIn(entity_type, ['legal_person', 'headquarters'])
self.assertEqual(test_line.name, '68727720')
self.assertEqual(test_line.kvk, '68727720')
self.assertEqual(test_line.partner_name, 'Test NV Katrien')
if entity_type == 'legal_person':
self.assertFalse(test_line.partner_city)
self.assertEqual(
test_line.partner_name, 'Test NV Katrien - Statutory Naam')
else:
self.assertEqual(test_line.partner_city, 'Veendam')
self.assertEqual(
test_line.partner_name, 'Test NV Katrien - Handelsnaam')
test_line.set_partner_fields()
self.assertEqual(my_partner.name, 'Test NV Katrien')
if entity_type == 'legal_person':
self.assertEqual(my_partner.name, 'Test NV Katrien - Statutory Naam')
else:
self.assertEqual(my_partner.name, 'Test NV Katrien - Handelsnaam')
self.assertFalse(my_partner.vat)
self.assertEqual(my_partner.country_id, nl_country)
if entity_type == 'legal_person':
Expand All @@ -377,8 +383,8 @@ def test_14_api_load_no_wizard(self):
self.assertFalse(wizard_action)

# partner fields directly set (without popup)
self.assertEqual(my_partner.name, 'Local Funzoom N.V.')
self.assertEqual(my_partner.city, 'Leiderdorp')
self.assertEqual(my_partner.name, 'Local Funzoom N.V. - Statutory Naam')
self.assertEqual(my_partner.city, 'Denekamp')
self.assertFalse(my_partner.vat)
self.assertEqual(my_partner.country_id, nl_country)

Expand Down

0 comments on commit 35d7eb8

Please sign in to comment.