From 1693a27f289a12dbcf49fbaf8ff9d6e948be08c0 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Mon, 4 Mar 2019 17:09:21 +0100 Subject: [PATCH] [FIX] account: mute logger on expected Exception in test --- addons/account/tests/test_account_invoice_rounding.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/account/tests/test_account_invoice_rounding.py b/addons/account/tests/test_account_invoice_rounding.py index 9b0ef0fc9e8..3d2dd883b36 100644 --- a/addons/account/tests/test_account_invoice_rounding.py +++ b/addons/account/tests/test_account_invoice_rounding.py @@ -2,6 +2,7 @@ from odoo.addons.account.tests.account_test_classes import AccountingTestCase from odoo.exceptions import ValidationError +from odoo.tools import mute_logger import time @@ -58,7 +59,8 @@ class TestAccountInvoiceRounding(AccountingTestCase): # to avoid a ValidationError from _check_cash_rounding because the onchange # are not well triggered in the tests. try: - invoice_id.cash_rounding_id = cash_rounding_id + with mute_logger('odoo.models'): + invoice_id.cash_rounding_id = cash_rounding_id except ValidationError: pass