[MIG] account_financial_report: Migration to 16.0

This commit is contained in:
David Ramia
2022-12-20 14:25:50 +01:00
committed by chaule97
parent 0e20eeb133
commit 4de4c3d2b1
23 changed files with 289 additions and 318 deletions

View File

@@ -28,9 +28,9 @@ class TestGeneralLedgerReport(AccountTestInvoicingCommon):
cls.unaffected_account = cls.env["account.account"].search(
[
(
"user_type_id",
"account_type",
"=",
cls.env.ref("account.data_unaffected_earnings").id,
"equity_unaffected",
),
("company_id", "=", cls.env.user.company_id.id),
],

View File

@@ -26,9 +26,9 @@ class TestTrialBalanceReport(AccountTestInvoicingCommon):
cls.account110 = cls.env["account.account"].search(
[
(
"user_type_id",
"account_type",
"=",
cls.env.ref("account.data_unaffected_earnings").id,
"equity_unaffected",
),
],
limit=1,
@@ -39,9 +39,7 @@ class TestTrialBalanceReport(AccountTestInvoicingCommon):
"code": "200",
"name": "Account 200",
"group_id": cls.group2.id,
"user_type_id": cls.env.ref(
"account.data_account_type_other_income"
).id,
"account_type": "income_other",
},
)
cls.account300 = cls._create_account_account(
@@ -49,9 +47,7 @@ class TestTrialBalanceReport(AccountTestInvoicingCommon):
{
"code": "300",
"name": "Account 300",
"user_type_id": cls.env.ref(
"account.data_account_type_other_income"
).id,
"account_type": "income_other",
},
)
cls.account301 = cls._create_account_account(
@@ -60,9 +56,7 @@ class TestTrialBalanceReport(AccountTestInvoicingCommon):
"code": "301",
"name": "Account 301",
"group_id": cls.group2.id,
"user_type_id": cls.env.ref(
"account.data_account_type_other_income"
).id,
"account_type": "income_other",
},
)
cls.previous_fy_date_start = "2015-01-01"
@@ -75,9 +69,9 @@ class TestTrialBalanceReport(AccountTestInvoicingCommon):
cls.unaffected_account = cls.env["account.account"].search(
[
(
"user_type_id",
"account_type",
"=",
cls.env.ref("account.data_unaffected_earnings").id,
"equity_unaffected",
),
],
limit=1,

View File

@@ -30,7 +30,6 @@ class TestVATReport(AccountTestInvoicingCommon):
)
move_form.invoice_date = invoice_date or fields.Date.from_string("2019-01-01")
move_form.partner_id = partner or cls.partner_a
move_form.name = name or "Test"
lines = lines or []
for line in lines:
with move_form.invoice_line_ids.new() as line_form:
@@ -61,9 +60,9 @@ class TestVATReport(AccountTestInvoicingCommon):
[
("company_id", "=", cls.company.id),
(
"user_type_id",
"account_type",
"=",
cls.env.ref("account.data_account_type_non_current_liabilities").id,
"liability_non_current",
),
],
limit=1,