[14.0][MIG] account_fiscal_month

This commit is contained in:
xavier-bouquiaux
2021-09-27 17:26:48 +02:00
committed by Ruchir Shukla
parent 6c9739a4b0
commit ed0a85b803
3 changed files with 4 additions and 4 deletions

View File

@@ -4,7 +4,7 @@
{
"name": "Account Fiscal Month",
"summary": """Provide a fiscal month date range type""",
"version": "13.0.1.0.0",
"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

@@ -16,4 +16,4 @@ class DateRangeType(models.Model):
)
if date_range_type_fm.id in self.ids:
raise UserError(_("You can't delete date range type: " "Fiscal month"))
return super(DateRangeType, self).unlink()
return super().unlink()

View File

@@ -65,5 +65,5 @@ class TestAccountFiscalMonth(TransactionCase):
january_2017_1st = Date.from_string("2017-01-01")
date_ranges = self.company.find_daterange_fm(january_2017_1st)
self.assertEquals(len(date_ranges), 1)
self.assertEquals(date_ranges[0], self.date_range_january_2017)
self.assertEqual(len(date_ranges), 1)
self.assertEqual(date_ranges[0], self.date_range_january_2017)