[14.0][MIG] account_move_fiscal_year

This commit is contained in:
xavier-bouquiaux
2021-11-02 14:57:46 +01:00
committed by Juany Davila
parent a6e6b8ecde
commit 66ec0aa32c
2 changed files with 1 additions and 2 deletions

View File

@@ -16,7 +16,6 @@ class AccountMove(models.Model):
search="_search_date_range_fy",
)
@api.multi
@api.depends("date", "company_id")
def _compute_date_range_fy(self):
for rec in self:

View File

@@ -85,7 +85,7 @@ class TestAccountMoveFiscalYear(TransactionCase):
january_1st = Date.to_date("2017-01-01")
move = self.create_account_move(january_1st)
self.assertEquals(
self.assertEqual(
move.date_range_fy_id,
self.date_range_2017,
msg="Move period should be 2017",