mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[14.0][MIG] account_move_fiscal_month
This commit is contained in:
committed by
JasminSForgeFlow
parent
92819ff597
commit
f5f33c2588
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
)
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user