[MIG] account_financial_report: Migration to 16.0
This commit is contained in:
@@ -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),
|
||||
],
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user