Skip to content

Commit

Permalink
[IMP] account_move_line_tax_editable: test performance improvement
Browse files Browse the repository at this point in the history
- Include context keys for avoiding mail operations overhead.
  • Loading branch information
josep-tecnativa committed Oct 13, 2023
1 parent 557ab8c commit d030726
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d030726

Please sign in to comment.