Skip to content

Commit

Permalink
[IMP] account_invoice_report_grouped_by_picking: test performance imp…
Browse files Browse the repository at this point in the history
…rovement

- Include context keys for avoiding mail operations overhead.
  • Loading branch information
josep-tecnativa committed Oct 13, 2023
1 parent 7498f9f commit a2b28c9
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@ class TestAccountInvoiceGroupPicking(TransactionCase):
@classmethod
def setUpClass(cls):
super(TestAccountInvoiceGroupPicking, cls).setUpClass()
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,
)
)
cls.currency_usd = cls.env.ref("base.USD")
cls.currency_usd.active = True
# Make sure the currency of the company is USD, as this not always happens
Expand Down

0 comments on commit a2b28c9

Please sign in to comment.