Skip to content
Snippets Groups Projects

Draft: Port to Odoo 16.

Closed Etienne Ferriere requested to merge topic/13.0/MO16-236 into branch/13.0
Compare and Show latest version
4 files
+ 12
32
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -28,8 +28,7 @@
AMOUNT = 42.0
@odoo.tests.common.at_install(False)
@odoo.tests.common.post_install(True)
@odoo.tests.tagged("-at_install", "post_install")
class Test(odoo.tests.TransactionCase):
"""Test this ``account_report`` module."""
@@ -48,8 +47,8 @@
)
self.assertTrue(self.pay_journal)
self.debit_account = self._createAccount("receivable")
self.credit_account = self._createAccount("other")
self.debit_account = self._createAccount("asset_receivable")
self.credit_account = self._createAccount("income_other")
self.product = self.env.ref("product.product_product_1")
@@ -157,6 +156,5 @@
return self.env["account.account"].create(
{
"code": uuid.uuid4().hex[:8],
"internal_type": account_type,
"name": uuid.uuid4().hex,
"reconcile": True,
@@ -161,10 +159,6 @@
"name": uuid.uuid4().hex,
"reconcile": True,
"user_type_id": (
self.env["account.account.type"]
.search([("type", "=", account_type)], limit=1)
.id
),
"account_type": account_type,
}
)
@@ -308,7 +302,7 @@
:rtype: Odoo "account.period" record.
"""
# Create an account.fiscalyear
a_fiscalyear = self.env["account.fiscalyear"].create(
# Create an account.fiscal.year
a_fiscalyear = self.env["account.fiscal.year"].create(
{
"name": "Fiscal Year X " + time.strftime("%Y"),
@@ -313,4 +307,3 @@
{
"name": "Fiscal Year X " + time.strftime("%Y"),
"code": "FY" + time.strftime("%Y"),
"company_id": self.env.ref("base.main_company").id,
@@ -316,5 +309,5 @@
"company_id": self.env.ref("base.main_company").id,
"date_stop": time.strftime("%Y") + "-12-31",
"date_to": time.strftime("%Y") + "-12-31",
}
)
Loading