Skip to content

Commit 00b44e5

Browse files
committed
[IMP] account_move_change_financial_account: change internal_type and user_type_id to account_type in tests
1 parent f303d18 commit 00b44e5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

account_move_change_financial_account/tests/test_account_move_change_financial_account.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,20 @@ def setUpClass(cls, chart_template_ref=None):
2121
}
2222
)
2323
cls.receivable_account = cls.env["account.account"].search(
24-
[("internal_type", "=", "receivable")], limit=1
24+
[("account_type", "=", "asset_receivable")], limit=1
2525
)
2626
cls.revenue_account = cls.env["account.account"].create(
2727
{
2828
"name": "Test Revenue Account",
2929
"code": "TRA",
30-
"user_type_id": cls.env.ref("account.data_account_type_revenue").id,
30+
"account_type": "expense_direct_cost",
3131
}
3232
)
3333
cls.new_receivable_account = cls.env["account.account"].create(
3434
{
3535
"name": "New Receivable Account",
3636
"code": "NEWRCV",
37-
"user_type_id": cls.env.ref("account.data_account_type_receivable").id,
37+
"account_type": "asset_receivable",
3838
"reconcile": True,
3939
}
4040
)

0 commit comments

Comments
 (0)