diff --git a/addons/account/tests/test_account_invoice_rounding.py b/addons/account/tests/test_account_invoice_rounding.py index 3d2dd883b36..9b0ef0fc9e8 100644 --- a/addons/account/tests/test_account_invoice_rounding.py +++ b/addons/account/tests/test_account_invoice_rounding.py @@ -2,7 +2,6 @@ from odoo.addons.account.tests.account_test_classes import AccountingTestCase from odoo.exceptions import ValidationError -from odoo.tools import mute_logger import time @@ -59,8 +58,7 @@ class TestAccountInvoiceRounding(AccountingTestCase): # to avoid a ValidationError from _check_cash_rounding because the onchange # are not well triggered in the tests. try: - with mute_logger('odoo.models'): - invoice_id.cash_rounding_id = cash_rounding_id + invoice_id.cash_rounding_id = cash_rounding_id except ValidationError: pass diff --git a/odoo/addons/base/tests/test_views.py b/odoo/addons/base/tests/test_views.py index f4f9011fc57..b4a5ac178e9 100644 --- a/odoo/addons/base/tests/test_views.py +++ b/odoo/addons/base/tests/test_views.py @@ -866,7 +866,7 @@ class TestViews(ViewCase): # implemeted elsewhere... modifiers_tests() - @mute_logger('odoo.addons.base.ir.ir_ui_view', 'odoo.models') + @mute_logger('odoo.addons.base.ir.ir_ui_view') def test_invalid_field(self): with self.assertRaises(ValidationError): self.View.create({ @@ -880,7 +880,7 @@ class TestViews(ViewCase): """, }) - @mute_logger('odoo.addons.base.ir.ir_ui_view', 'odoo.models') + @mute_logger('odoo.addons.base.ir.ir_ui_view') def test_invalid_subfield(self): with self.assertRaises(ValidationError): self.View.create({ @@ -899,7 +899,7 @@ class TestViews(ViewCase): """, }) - @mute_logger('odoo.addons.base.ir.ir_ui_view', 'odoo.models') + @mute_logger('odoo.addons.base.ir.ir_ui_view') def test_context_in_view(self): arch = """