From fc1c08184b6fb732d7e172051a37501717e7b648 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Sun, 29 Sep 2024 00:11:45 +0200 Subject: [PATCH] [FIX] account_check_deposit: fix tests --- account_check_deposit/static/description/index.html | 12 +++++++----- account_check_deposit/tests/test_check_deposit.py | 11 +++-------- 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/account_check_deposit/static/description/index.html b/account_check_deposit/static/description/index.html index 1fc3e8e3b..fe2d02571 100644 --- a/account_check_deposit/static/description/index.html +++ b/account_check_deposit/static/description/index.html @@ -1,4 +1,3 @@ - @@ -9,10 +8,11 @@ /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ +:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. +Despite the name, some widely supported CSS2 features are used. See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to customize this style sheet. @@ -275,7 +275,7 @@ pre.literal-block, pre.doctest-block, pre.math, pre.code { margin-left: 2em ; margin-right: 2em } -pre.code .ln { color: grey; } /* line numbers */ +pre.code .ln { color: gray; } /* line numbers */ pre.code, code { background-color: #eeeeee } pre.code .comment, code .comment { color: #5C6576 } pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } @@ -301,7 +301,7 @@ span.option { span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { @@ -471,7 +471,9 @@ If you spotted it first, help us to smash it by providing a detailed and welcome

Maintainers

This module is maintained by the OCA.

-Odoo Community Association + +Odoo Community Association +

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

diff --git a/account_check_deposit/tests/test_check_deposit.py b/account_check_deposit/tests/test_check_deposit.py index e29e81d9e..5d19e11c3 100644 --- a/account_check_deposit/tests/test_check_deposit.py +++ b/account_check_deposit/tests/test_check_deposit.py @@ -15,12 +15,7 @@ class TestAccountCheckDeposit(AccountTestInvoicingCommon): def setUpClass(cls, chart_template_ref=None): super().setUpClass(chart_template_ref=chart_template_ref) cls.env = cls.env(context=dict(cls.env.context, tracking_disable=True)) - cls.fr_test_company = cls.setup_company_data( - "Chq deposit test company", - chart_template=chart_template_ref, - country_id=cls.env.ref("base.fr").id, - ) - cls.company = cls.fr_test_company["company"] + cls.company = cls.company_data["company"] cls.user.write( { "company_ids": [Command.link(cls.company.id)], @@ -60,7 +55,7 @@ class TestAccountCheckDeposit(AccountTestInvoicingCommon): ], } ) - cls.fr_test_company["default_journal_bank"].bank_account_id = cls.env[ + cls.company_data["default_journal_bank"].bank_account_id = cls.env[ "res.partner.bank" ].create( { @@ -98,7 +93,7 @@ class TestAccountCheckDeposit(AccountTestInvoicingCommon): { "company_id": self.company.id, "journal_id": self.check_journal.id, - "bank_journal_id": self.fr_test_company["default_journal_bank"].id, + "bank_journal_id": self.company_data["default_journal_bank"].id, "currency_id": self.currency.id, } )