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