From a84bbbc7678c7e5166a865ce27ab97e4be572e11 Mon Sep 17 00:00:00 2001 From: Lois Rilo Date: Tue, 19 Jul 2022 16:49:01 +0200 Subject: [PATCH 1/3] [IMP] account_financial_report: common format for all amounts In the open items report, the currency original and residual fields were being displayed as regular float fields. With this change they are printed with the corresponding format for the currency of the journal item. --- .../report/templates/open_items.xml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/account_financial_report/report/templates/open_items.xml b/account_financial_report/report/templates/open_items.xml index ddefc297..ff9c6ace 100644 --- a/account_financial_report/report/templates/open_items.xml +++ b/account_financial_report/report/templates/open_items.xml @@ -248,11 +248,17 @@
- +
- +
From 66cc8c0d1fb03a328e72c2d9337877a1fa425ba6 Mon Sep 17 00:00:00 2001 From: Lois Rilo Date: Wed, 20 Jul 2022 16:02:11 +0200 Subject: [PATCH 2/3] [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/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 ++ 5 files changed, 12 insertions(+) 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( From 2ea07a957e5c4258e1a91d6550a88b39687a7025 Mon Sep 17 00:00:00 2001 From: Lois Rilo Date: Wed, 20 Jul 2022 16:09:26 +0200 Subject: [PATCH 3/3] [FIX] account_tax_balance: 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_tax_balance/tests/test_account_tax_balance.py | 1 + 1 file changed, 1 insertion(+) diff --git a/account_tax_balance/tests/test_account_tax_balance.py b/account_tax_balance/tests/test_account_tax_balance.py index 4d4c8bfc..f3aade69 100644 --- a/account_tax_balance/tests/test_account_tax_balance.py +++ b/account_tax_balance/tests/test_account_tax_balance.py @@ -265,6 +265,7 @@ class TestAccountTaxBalance(HttpCase): self.assertEqual(tax.balance, 17.5) +@odoo.tests.tagged("post_install", "-at_install") class TestInvoicingBalance(AccountTestInvoicingCommon): def test_balance_recomputation(self): """Check that balances are computed correctly for different dates."""