diff --git a/partner_industry_secondary/migrations/13.0.1.0.0/post-migration.py b/partner_industry_secondary/migrations/14.0.1.0.0/post-migration.py similarity index 100% rename from partner_industry_secondary/migrations/13.0.1.0.0/post-migration.py rename to partner_industry_secondary/migrations/14.0.1.0.0/post-migration.py diff --git a/partner_industry_secondary/tests/test_res_partner_industry.py b/partner_industry_secondary/tests/test_res_partner_industry.py index c0ad98967..e05cb281e 100644 --- a/partner_industry_secondary/tests/test_res_partner_industry.py +++ b/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")