-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pre-commit fixes Test Updates Test Updates Test Updates Test Updates Test Updates Test Updates
- Loading branch information
1 parent
1d23580
commit 0afadea
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import test_l10n_nl_rgs_coa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Copyright (C) 2024 Onestein (<http://www.onestein.eu>). | ||
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html | ||
|
||
from odoo.tests.common import TransactionCase | ||
|
||
|
||
class L10nNlRGSCoa(TransactionCase): | ||
def setUp(self): | ||
super().setUp() | ||
self.l10n_nl_rgs_coa = self.env.ref("l10n_nl_rgs.l10nnl_rgs_chart_template") | ||
self.l10n_nl_rgs_company = self.env["res.company"].create( | ||
{"name": "Test Company"} | ||
) | ||
|
||
def test_l10n_nl_rgs_coa(self): | ||
"""Test installing the chart of accounts template in a new company""" | ||
self.l10n_nl_rgs_coa._load(company=self.l10n_nl_rgs_company) | ||
self.assertEqual( | ||
self.l10n_nl_rgs_coa, self.l10n_nl_rgs_company.chart_template_id | ||
) |