From 831cbe144904867033cec4f0a0eaa0055daa85fc Mon Sep 17 00:00:00 2001 From: git_admin Date: Tue, 28 Apr 2026 07:33:48 +0000 Subject: [PATCH] Tower: upload at_accounting 18.0.1.7 (via marketplace) --- addons/at_accounting/tests/test_tour.py | 48 +++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 addons/at_accounting/tests/test_tour.py diff --git a/addons/at_accounting/tests/test_tour.py b/addons/at_accounting/tests/test_tour.py new file mode 100644 index 0000000..3033b44 --- /dev/null +++ b/addons/at_accounting/tests/test_tour.py @@ -0,0 +1,48 @@ +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +import odoo.tests + +from odoo import Command +from odoo.addons.account.tests.common import AccountTestInvoicingHttpCommon + + +@odoo.tests.tagged('post_install_l10n', 'post_install', '-at_install') +class TestAccountantTours(AccountTestInvoicingHttpCommon): + def test_account_merge_wizard_tour(self): + companies = self.env['res.company'].create([ + {'name': 'tour_company_1'}, + {'name': 'tour_company_2'}, + ]) + + self.env['account.account'].create([ + { + 'company_ids': [Command.set(companies[0].ids)], + 'code': "100001", + 'name': "Current Assets", + 'account_type': 'asset_current', + }, + { + 'company_ids': [Command.set(companies[0].ids)], + 'code': "100002", + 'name': "Non-Current Assets", + 'account_type': 'asset_non_current', + }, + { + 'company_ids': [Command.set(companies[1].ids)], + 'code': "200001", + 'name': "Current Assets", + 'account_type': 'asset_current', + }, + { + 'company_ids': [Command.set(companies[1].ids)], + 'code': "200002", + 'name': "Non-Current Assets", + 'account_type': 'asset_non_current', + }, + ]) + + self.env.ref('base.user_admin').write({ + 'company_id': companies[0].id, + 'company_ids': [Command.set(companies.ids)], + }) + self.start_tour("/odoo", 'account_merge_wizard_tour', login="admin", cookies={"cids": f"{companies[0].id}-{companies[1].id}"})