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_year
This commit is contained in:
committed by
Juany Davila
parent
a6e6b8ecde
commit
66ec0aa32c
@@ -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:
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user