From d03072657f9e665732893fb3f96f6702cd098c41 Mon Sep 17 00:00:00 2001 From: josep-tecnativa Date: Fri, 13 Oct 2023 12:33:32 +0200 Subject: [PATCH] [IMP] account_move_line_tax_editable: test performance improvement - Include context keys for avoiding mail operations overhead. --- .../tests/test_account_move_line_tax_editable.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/account_move_line_tax_editable/tests/test_account_move_line_tax_editable.py b/account_move_line_tax_editable/tests/test_account_move_line_tax_editable.py index 199c57bb3bb..3537db74f0a 100644 --- a/account_move_line_tax_editable/tests/test_account_move_line_tax_editable.py +++ b/account_move_line_tax_editable/tests/test_account_move_line_tax_editable.py @@ -11,6 +11,16 @@ class TestAccountMoveLineTaxEditable(AccountTestInvoicingCommon): @classmethod def setUpClass(cls, chart_template_ref=None): super().setUpClass(chart_template_ref=chart_template_ref) + cls.env = cls.env( + context=dict( + cls.env.context, + mail_create_nolog=True, + mail_create_nosubscribe=True, + mail_notrack=True, + no_reset_password=True, + tracking_disable=True, + ) + ) refund_repartitions = cls.company_data[ "default_tax_sale" ].refund_repartition_line_ids