From 8e35e2a08a34581cf3459c2e1ed3a8986e97b27e Mon Sep 17 00:00:00 2001 From: Surachet Saejueng Date: Mon, 16 Nov 2020 04:38:09 +0000 Subject: [PATCH] [MIG] partner_industry_secondary: Migration to 14.0 --- .../migrations/{13.0.1.0.0 => 14.0.1.0.0}/post-migration.py | 0 partner_industry_secondary/tests/test_res_partner_industry.py | 4 ++++ 2 files changed, 4 insertions(+) rename partner_industry_secondary/migrations/{13.0.1.0.0 => 14.0.1.0.0}/post-migration.py (100%) 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")