diff --git a/account_move_fiscal_year/models/account_move.py b/account_move_fiscal_year/models/account_move.py index 6ff3a8d3b..993901713 100644 --- a/account_move_fiscal_year/models/account_move.py +++ b/account_move_fiscal_year/models/account_move.py @@ -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: diff --git a/account_move_fiscal_year/tests/test_account_move_fiscal_year.py b/account_move_fiscal_year/tests/test_account_move_fiscal_year.py index e91e198bc..7227e1fbb 100644 --- a/account_move_fiscal_year/tests/test_account_move_fiscal_year.py +++ b/account_move_fiscal_year/tests/test_account_move_fiscal_year.py @@ -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",