From 4fc54ce0aad1cfd15feff0ff4e3b30b3646dcf9d Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Tue, 16 Oct 2018 14:18:11 +0200 Subject: [PATCH] [WIP] DO NOT MERGE: SQL constraint problem showcase * Add new module that depends on purchase so that it's installed and the SQL constraint is added * Due to the module name, the module is going to be loaded later * On date_range tests, without post_install, tests are failing on the company creation --- 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 -- zzz/__init__.py | 0 zzz/__manifest__.py | 14 ++++++++++++++ 5 files changed, 14 insertions(+), 6 deletions(-) create mode 100644 zzz/__init__.py create mode 100644 zzz/__manifest__.py diff --git a/date_range/tests/test_date_range.py b/date_range/tests/test_date_range.py index 398d663..ccba1f1 100644 --- a/date_range/tests/test_date_range.py +++ b/date_range/tests/test_date_range.py @@ -8,8 +8,6 @@ from odoo.tests.common import TransactionCase 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 9bbe929..5133854 100644 --- a/date_range/tests/test_date_range_generator.py +++ b/date_range/tests/test_date_range_generator.py @@ -10,8 +10,6 @@ from odoo.tests.common import TransactionCase 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 51519ff..fc98b88 100644 --- a/date_range/tests/test_date_range_type.py +++ b/date_range/tests/test_date_range_type.py @@ -9,8 +9,6 @@ from odoo.tools import mute_logger class DateRangeTypeTest(TransactionCase): - post_install = True - at_install = False def setUp(self): super(DateRangeTypeTest, self).setUp() diff --git a/zzz/__init__.py b/zzz/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/zzz/__manifest__.py b/zzz/__manifest__.py new file mode 100644 index 0000000..459646b --- /dev/null +++ b/zzz/__manifest__.py @@ -0,0 +1,14 @@ +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). +{ + "name": "ZZZ", + "version": "12.0.1.0.0", + "category": "Uncategorized", + "website": "https://github.com/oca/server-ux", + "author": "Odoo Community Association (OCA)", + "license": "AGPL-3", + "installable": True, + "depends": [ + "purchase", + "date_range", + ], +}