From 9830cc3aed07d917dbd6e120ff2ce9b2ca30c8ad Mon Sep 17 00:00:00 2001 From: Lois Rilo Date: Wed, 20 Jul 2022 16:02:11 +0200 Subject: [PATCH] [FIX] account_financial_report: run test after install Due to the change at https://github.com/odoo/odoo/commit/15a1b3ae5cb1117e2c1bda5058d3cd99f00a6769 it is now required to run tests that require CoA after install. --- account_financial_report/__manifest__.py | 2 +- account_financial_report/tests/test_general_ledger.py | 2 ++ account_financial_report/tests/test_journal_ledger.py | 2 ++ account_financial_report/tests/test_open_items.py | 3 +++ account_financial_report/tests/test_trial_balance.py | 3 +++ account_financial_report/tests/test_vat_report.py | 2 ++ 6 files changed, 13 insertions(+), 1 deletion(-) diff --git a/account_financial_report/__manifest__.py b/account_financial_report/__manifest__.py index 25bf6ce1..24946b7d 100644 --- a/account_financial_report/__manifest__.py +++ b/account_financial_report/__manifest__.py @@ -6,7 +6,7 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { "name": "Account Financial Reports", - "version": "15.0.1.0.1", + "version": "15.0.1.1.0", "category": "Reporting", "summary": "OCA Financial Reports", "author": "Camptocamp SA," diff --git a/account_financial_report/tests/test_general_ledger.py b/account_financial_report/tests/test_general_ledger.py index b0e2f571..9a0004f8 100644 --- a/account_financial_report/tests/test_general_ledger.py +++ b/account_financial_report/tests/test_general_ledger.py @@ -7,10 +7,12 @@ import time from datetime import date from odoo import api, fields +from odoo.tests import tagged from odoo.addons.account.tests.common import AccountTestInvoicingCommon +@tagged("post_install", "-at_install") class TestGeneralLedgerReport(AccountTestInvoicingCommon): @classmethod def setUpClass(cls, chart_template_ref=None): diff --git a/account_financial_report/tests/test_journal_ledger.py b/account_financial_report/tests/test_journal_ledger.py index 5620f073..62b56e5e 100644 --- a/account_financial_report/tests/test_journal_ledger.py +++ b/account_financial_report/tests/test_journal_ledger.py @@ -7,11 +7,13 @@ from datetime import datetime from dateutil.relativedelta import relativedelta from odoo.fields import Date +from odoo.tests import tagged from odoo.tests.common import Form from odoo.addons.account.tests.common import AccountTestInvoicingCommon +@tagged("post_install", "-at_install") class TestJournalReport(AccountTestInvoicingCommon): @classmethod def setUpClass(cls, chart_template_ref=None): diff --git a/account_financial_report/tests/test_open_items.py b/account_financial_report/tests/test_open_items.py index 3a3536bd..b490ca0e 100644 --- a/account_financial_report/tests/test_open_items.py +++ b/account_financial_report/tests/test_open_items.py @@ -2,9 +2,12 @@ # Copyright 2016 Camptocamp SA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +from odoo.tests import tagged + from odoo.addons.account.tests.common import AccountTestInvoicingCommon +@tagged("post_install", "-at_install") class TestOpenItems(AccountTestInvoicingCommon): @classmethod def setUpClass(cls, chart_template_ref=None): diff --git a/account_financial_report/tests/test_trial_balance.py b/account_financial_report/tests/test_trial_balance.py index c7db2fa1..f3fd85da 100644 --- a/account_financial_report/tests/test_trial_balance.py +++ b/account_financial_report/tests/test_trial_balance.py @@ -3,9 +3,12 @@ # Copyright 2020 ForgeFlow S.L. (https://www.forgeflow.com) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +from odoo.tests import tagged + from odoo.addons.account.tests.common import AccountTestInvoicingCommon +@tagged("post_install", "-at_install") class TestTrialBalanceReport(AccountTestInvoicingCommon): @classmethod def setUpClass(cls, chart_template_ref=None): diff --git a/account_financial_report/tests/test_vat_report.py b/account_financial_report/tests/test_vat_report.py index 629f0c78..1327cee8 100644 --- a/account_financial_report/tests/test_vat_report.py +++ b/account_financial_report/tests/test_vat_report.py @@ -6,11 +6,13 @@ import time from datetime import date from odoo import fields +from odoo.tests import tagged from odoo.tests.common import Form from odoo.addons.account.tests.common import AccountTestInvoicingCommon +@tagged("post_install", "-at_install") class TestVATReport(AccountTestInvoicingCommon): @classmethod def init_invoice(