From 4961b704b32d2f71afa5bf04bd98c9cc3844e948 Mon Sep 17 00:00:00 2001 From: xavier-bouquiaux Date: Tue, 28 Sep 2021 08:31:26 +0200 Subject: [PATCH] [14.0][MIG] account_move_fiscal_month --- account_move_fiscal_month/__manifest__.py | 2 +- account_move_fiscal_month/models/account_move_line.py | 4 +++- .../tests/test_account_move_fiscal_month.py | 2 +- .../odoo/addons/account_move_fiscal_month | 1 + setup/account_move_fiscal_month/setup.py | 6 ++++++ test-requirements.txt | 1 - 6 files changed, 12 insertions(+), 4 deletions(-) create mode 120000 setup/account_move_fiscal_month/odoo/addons/account_move_fiscal_month create mode 100644 setup/account_move_fiscal_month/setup.py diff --git a/account_move_fiscal_month/__manifest__.py b/account_move_fiscal_month/__manifest__.py index 431cb6427..f70353c7b 100644 --- a/account_move_fiscal_month/__manifest__.py +++ b/account_move_fiscal_month/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Account Move Fiscal Month", "summary": """Display the fiscal month on journal entries/item""", - "version": "13.0.1.1.1", + "version": "14.0.1.0.0", "license": "AGPL-3", "author": "ACSONE SA/NV,Odoo Community Association (OCA)", "website": "https://github.com/OCA/account-financial-tools", diff --git a/account_move_fiscal_month/models/account_move_line.py b/account_move_fiscal_month/models/account_move_line.py index 042d5fec1..18a76eb53 100644 --- a/account_move_fiscal_month/models/account_move_line.py +++ b/account_move_fiscal_month/models/account_move_line.py @@ -8,4 +8,6 @@ class AccountMoveLine(models.Model): _inherit = "account.move.line" - date_range_fm_id = fields.Many2one(related="move_id.date_range_fm_id",) + date_range_fm_id = fields.Many2one( + related="move_id.date_range_fm_id", + ) diff --git a/account_move_fiscal_month/tests/test_account_move_fiscal_month.py b/account_move_fiscal_month/tests/test_account_move_fiscal_month.py index e1b6f910e..7ab78e003 100644 --- a/account_move_fiscal_month/tests/test_account_move_fiscal_month.py +++ b/account_move_fiscal_month/tests/test_account_move_fiscal_month.py @@ -100,7 +100,7 @@ class TestAccountMoveFiscalMonth(TransactionCase): january_1st = Date.from_string("2017-01-01") move = self.create_account_move(january_1st) - self.assertEquals( + self.assertEqual( move.date_range_fm_id, self.date_range_january_2017, msg="Move period should be January 2017", diff --git a/setup/account_move_fiscal_month/odoo/addons/account_move_fiscal_month b/setup/account_move_fiscal_month/odoo/addons/account_move_fiscal_month new file mode 120000 index 000000000..caa5b716b --- /dev/null +++ b/setup/account_move_fiscal_month/odoo/addons/account_move_fiscal_month @@ -0,0 +1 @@ +../../../../account_move_fiscal_month \ No newline at end of file diff --git a/setup/account_move_fiscal_month/setup.py b/setup/account_move_fiscal_month/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/account_move_fiscal_month/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) diff --git a/test-requirements.txt b/test-requirements.txt index 332e6aacc..e69de29bb 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1 +0,0 @@ -git+https://github.com/OCA/product-attribute@refs/pull/837/head#subdirectory=setup/product_category_product_link