[IMP] account_move_line_tax_editable: test performance improvement

- Include context keys for avoiding mail operations overhead.
This commit is contained in:
josep-tecnativa
2023-10-13 12:33:32 +02:00
committed by Carlos Roca
parent 215fd9a885
commit b50cfa02a8
4 changed files with 13 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ Account Move Line Tax Editable
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:f40756c7d2fcfb1c2a4adcfc8b1ec2125f2bde1651d05cd032daaa7fa2652452
!! source digest: sha256:963e9a00d6b3311a5ccff8ab2681977d6325c1fad0347c74f86647989b58d81f
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png

View File

@@ -4,7 +4,7 @@
{
"name": "Account Move Line Tax Editable",
"summary": "Allows to edit taxes on non-posted account move lines",
"version": "16.0.1.0.0",
"version": "16.0.1.0.1",
"license": "AGPL-3",
"author": "ACSONE SA/NV, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/account-financial-tools",

View File

@@ -367,7 +367,7 @@ ul.auto-toc {
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:f40756c7d2fcfb1c2a4adcfc8b1ec2125f2bde1651d05cd032daaa7fa2652452
!! source digest: sha256:963e9a00d6b3311a5ccff8ab2681977d6325c1fad0347c74f86647989b58d81f
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/account-financial-tools/tree/16.0/account_move_line_tax_editable"><img alt="OCA/account-financial-tools" src="https://img.shields.io/badge/github-OCA%2Faccount--financial--tools-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/account-financial-tools-16-0/account-financial-tools-16-0-account_move_line_tax_editable"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/account-financial-tools&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>Allows to edit taxes on account move lines.</p>

View File

@@ -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