Skip to content

Commit

Permalink
[MIG] base_recurrence: Migration to 14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyasProgrammer committed Aug 10, 2023
1 parent f99d523 commit 42cc6c7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion base_recurrence/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"name": "Base Recurrence",
"summary": """
Allows to define base methods for recurrence computation""",
"version": "15.0.1.0.0",
"version": "14.0.1.0.0",
"license": "AGPL-3",
"maintainers": ["rousseldenis"],
"author": "ACSONE SA/NV,Odoo Community Association (OCA)",
Expand Down
4 changes: 4 additions & 0 deletions base_recurrence/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
* Denis Roussel <denis.roussel@acsone.eu>

* `Ooops404 <https://www.ooops404.com>`__:

* Ilyas <irazor147@gmail.com>
11 changes: 5 additions & 6 deletions base_recurrence/tests/test_recurrence.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,15 @@


class RecurrenceTestCommon(TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.loader = FakeModelLoader(cls.env, cls.__module__)
cls.loader.backup_registry()
def setUp(self, *args, **kwargs):
super().setUp()
self.loader = FakeModelLoader(self.env, self.__module__)
self.loader.backup_registry()

# The fake class is imported here !! After the backup_registry
from .fake_model import FakeRecurrence

cls.loader.update_registry((FakeRecurrence,))
self.loader.update_registry((FakeRecurrence,))

@classmethod
def tearDownClass(cls):
Expand Down

0 comments on commit 42cc6c7

Please sign in to comment.