[14.0][MIG] account_move_fiscal_month

This commit is contained in:
xavier-bouquiaux
2021-09-28 08:31:26 +02:00
committed by JasminSForgeFlow
parent 92819ff597
commit f5f33c2588
3 changed files with 5 additions and 3 deletions

View File

@@ -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",

View File

@@ -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",
)

View File

@@ -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",