[MIG] account_fiscal_month: Migration to 16.0
This commit is contained in:
parent
e1277eaf38
commit
085417a7dd
@ -4,7 +4,7 @@
|
||||
{
|
||||
"name": "Account Fiscal Month",
|
||||
"summary": """Provide a fiscal month date range type""",
|
||||
"version": "15.0.1.0.0",
|
||||
"version": "16.0.1.0.0",
|
||||
"license": "AGPL-3",
|
||||
"author": "ACSONE SA/NV, Odoo Community Association (OCA)",
|
||||
"website": "https://github.com/OCA/account-financial-tools",
|
||||
|
@ -1 +1,2 @@
|
||||
* Benjamin Willig <benjamin.willig@acsone.eu>
|
||||
* Alberto Nieto de Pablos <alberto.nieto@braintec.com> (https://braintec.com)
|
||||
|
@ -10,45 +10,46 @@ from odoo.tools import mute_logger
|
||||
|
||||
|
||||
class TestAccountFiscalMonth(TransactionCase):
|
||||
def setUp(self):
|
||||
super(TestAccountFiscalMonth, self).setUp()
|
||||
self.DateRangeObj = self.env["date.range"]
|
||||
self.DateRangeType = self.env["date.range.type"]
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
super().setUpClass()
|
||||
cls.DateRangeObj = cls.env["date.range"]
|
||||
cls.DateRangeType = cls.env["date.range.type"]
|
||||
|
||||
self.company = self.env.ref("base.main_company")
|
||||
cls.company = cls.env.ref("base.main_company")
|
||||
|
||||
self.date_range_type = self.DateRangeType.create(
|
||||
cls.date_range_type = cls.DateRangeType.create(
|
||||
{"name": "Other Type", "allow_overlap": False}
|
||||
)
|
||||
self.date_range_type_month = self.env.ref(
|
||||
cls.date_range_type_month = cls.env.ref(
|
||||
"account_fiscal_month.date_range_fiscal_month"
|
||||
)
|
||||
|
||||
self.date_range_1 = self.DateRangeObj.create(
|
||||
cls.date_range_1 = cls.DateRangeObj.create(
|
||||
{
|
||||
"name": "Other",
|
||||
"date_start": "2017-01-01",
|
||||
"date_end": "2017-01-31",
|
||||
"type_id": self.date_range_type.id,
|
||||
"company_id": self.company.id,
|
||||
"type_id": cls.date_range_type.id,
|
||||
"company_id": cls.company.id,
|
||||
}
|
||||
)
|
||||
|
||||
self.date_range_january_2017 = self.DateRangeObj.create(
|
||||
cls.date_range_january_2017 = cls.DateRangeObj.create(
|
||||
{
|
||||
"name": "January 2017",
|
||||
"date_start": "2017-01-01",
|
||||
"date_end": "2017-01-31",
|
||||
"type_id": self.date_range_type_month.id,
|
||||
"company_id": self.company.id,
|
||||
"type_id": cls.date_range_type_month.id,
|
||||
"company_id": cls.company.id,
|
||||
}
|
||||
)
|
||||
self.date_range_january_no_comp_2017 = self.DateRangeObj.create(
|
||||
cls.date_range_january_no_comp_2017 = cls.DateRangeObj.create(
|
||||
{
|
||||
"name": "January 2017",
|
||||
"date_start": "2017-01-01",
|
||||
"date_end": "2017-01-31",
|
||||
"type_id": self.date_range_type_month.id,
|
||||
"type_id": cls.date_range_type_month.id,
|
||||
"company_id": False,
|
||||
}
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user