From dde45eef4d4df1f25911fa33ca0a0ce4b6568d9a Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Fri, 13 Jul 2018 10:03:28 +0200 Subject: [PATCH] [IMP] date_range: Pass integration tests If any module adds a required field on company, module fails. Executing it on post_install, there's no problem. --- date_range/tests/test_date_range.py | 2 ++ date_range/tests/test_date_range_generator.py | 2 ++ date_range/tests/test_date_range_type.py | 2 ++ 3 files changed, 6 insertions(+) diff --git a/date_range/tests/test_date_range.py b/date_range/tests/test_date_range.py index f5dc7d3..28d6d5c 100644 --- a/date_range/tests/test_date_range.py +++ b/date_range/tests/test_date_range.py @@ -6,6 +6,8 @@ from odoo.exceptions import ValidationError class DateRangeTest(TransactionCase): + post_install = True + at_install = False def setUp(self): super(DateRangeTest, self).setUp() diff --git a/date_range/tests/test_date_range_generator.py b/date_range/tests/test_date_range_generator.py index d7a0b55..4ff05de 100644 --- a/date_range/tests/test_date_range_generator.py +++ b/date_range/tests/test_date_range_generator.py @@ -7,6 +7,8 @@ from dateutil.rrule import MONTHLY class DateRangeGeneratorTest(TransactionCase): + post_install = True + at_install = False def setUp(self): super(DateRangeGeneratorTest, self).setUp() diff --git a/date_range/tests/test_date_range_type.py b/date_range/tests/test_date_range_type.py index 2ae1e97..8178c09 100644 --- a/date_range/tests/test_date_range_type.py +++ b/date_range/tests/test_date_range_type.py @@ -8,6 +8,8 @@ from odoo.exceptions import ValidationError class DateRangeTypeTest(TransactionCase): + post_install = True + at_install = False def setUp(self): super(DateRangeTypeTest, self).setUp()