diff options
| author | Christophe Simonis <chs@odoo.com> | 2019-03-04 17:09:21 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2019-03-04 17:09:21 +0100 |
| commit | 1693a27f289a12dbcf49fbaf8ff9d6e948be08c0 (patch) | |
| tree | ab7a02880f9502dbd2ad929610daa57ac9ed2fc3 | |
| parent | c3764265de9a17404860b664d42a2329f496a4da (diff) | |
[FIX] account: mute logger on expected Exception in test
| -rw-r--r-- | addons/account/tests/test_account_invoice_rounding.py | 4 |
1 files changed, 3 insertions, 1 deletions
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 |
