Browse Source

[MIG] partner_industry_secondary: Migration to 14.0

14.0
Surachet Saejueng 4 years ago
parent
commit
8e35e2a08a
  1. 0
      partner_industry_secondary/migrations/14.0.1.0.0/post-migration.py
  2. 4
      partner_industry_secondary/tests/test_res_partner_industry.py

0
partner_industry_secondary/migrations/13.0.1.0.0/post-migration.py → partner_industry_secondary/migrations/14.0.1.0.0/post-migration.py

4
partner_industry_secondary/tests/test_res_partner_industry.py

@ -38,6 +38,10 @@ class TestResPartnerIndustry(common.SavepointCase):
def test_check_recursion(self):
with self.assertRaises(UserError):
self.industry_main.parent_id = self.industry_child.id
with self.assertRaises(ValidationError) as e:
self.industry_main._check_parent_id()
error_message = "Error! You cannot create recursive industries."
self.assertEqual(e.exception.args[0], error_message)
def test_name(self):
self.assertEqual(self.industry_child.display_name, "Test / Test child")
Loading…
Cancel
Save