Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
5865087
[UPD] Update account_invoice_margin_sale.pot
oca-travis Oct 14, 2020
fde1611
Added translation using Weblate (Spanish)
HaraldPanten Dec 16, 2020
873aca6
Translated using Weblate (Spanish)
HaraldPanten Dec 16, 2020
52c98be
[IMP] skip margin calculation for Down Payment invoice
Feb 1, 2021
7683e4a
[14.0][MIG] account_invoice_margin_sale: Migration to 14.0
Reyes4711-S73 May 3, 2021
da14bb2
Translated using Weblate (Spanish)
rafamarpe Feb 27, 2022
fc18e35
[MIG] account_invoice_margin_sale: Migration to 15.0
victoralmau Jul 28, 2022
edcacf8
[MIG] account_invoice_margin_sale: Migration to 16.0
ljsalvatierra-factorlibre May 22, 2023
015a4cc
[UPD] Update account_invoice_margin_sale.pot
Jun 5, 2023
a37086e
Added translation using Weblate (French (France) (fr_FR))
sanrav Jun 5, 2023
753c4bd
Translated using Weblate (French (France) (fr_FR))
sanrav Jun 5, 2023
882114a
Translated using Weblate (Spanish)
Gelo-fl Jun 7, 2023
383f98a
[IMP] account_invoice_margin_sale: test performance improvement
josep-tecnativa Oct 20, 2023
a321a78
[FIX] account_invoice_margin_sale: error creating invoice from sale o…
dreispt Jan 8, 2024
385bf1c
Added translation using Weblate (Italian)
mymage Jan 22, 2024
ae1be3e
Translated using Weblate (Italian)
mymage Jan 29, 2024
4b931bc
[IMP] account_invoice_margin_sale: pre-commit auto fixes
Feb 19, 2024
f1b596c
[MIG] account_invoice_margin_sale: Migration to 17.0
Feb 19, 2024
892e948
[MIG] account_invoice_margin_sale: Migration to 18.0
BhaveshHeliconia Feb 14, 2025
a5778f8
[UPD] Update account_invoice_margin_sale.pot
Apr 22, 2025
fdfde9e
[BOT] post-merge updates
OCA-git-bot Apr 22, 2025
215c278
Pre-commit fixes.
Debora7 Jan 8, 2026
a686ebc
[MIG] account_invoice_margin_sale: Migration to 19.0
Debora7 Jan 8, 2026
3001864
[DON'T MERGE] test-requirements.txt
eugenios73 Mar 4, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[IMP] account_invoice_margin_sale: test performance improvement
- Include context keys for avoiding mail operations overhead.
  • Loading branch information
josep-tecnativa authored and eugenios73 committed Feb 27, 2026
commit 383f98af6923c76e869ad27c057b4f71badaefd6
2 changes: 1 addition & 1 deletion account_invoice_margin_sale/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Account Invoice Margin Sale
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:0af22cebda1276cda900bc93c7752c6c1e101b4d93f82083104ca9d2208f2c11
!! source digest: sha256:68e6ec3e54aacd1d1ec0fb0da06bf432c2896c160834558f18bd26674445a1d1
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
Expand Down
2 changes: 1 addition & 1 deletion account_invoice_margin_sale/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{
"name": "Account Invoice Margin Sale",
"summary": "Set margin in invoices from sale orders",
"version": "16.0.1.0.0",
"version": "16.0.1.0.1",
"development_status": "Production/Stable",
"maintainers": ["sergio-teruel", "carlosdauden"],
"category": "Account",
Expand Down
2 changes: 1 addition & 1 deletion account_invoice_margin_sale/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ <h1 class="title">Account Invoice Margin Sale</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:0af22cebda1276cda900bc93c7752c6c1e101b4d93f82083104ca9d2208f2c11
!! source digest: sha256:68e6ec3e54aacd1d1ec0fb0da06bf432c2896c160834558f18bd26674445a1d1
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.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/margin-analysis/tree/16.0/account_invoice_margin_sale"><img alt="OCA/margin-analysis" src="https://img.shields.io/badge/github-OCA%2Fmargin--analysis-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/margin-analysis-16-0/margin-analysis-16-0-account_invoice_margin_sale"><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/margin-analysis&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>This module propagates purchase price from sale order line to invoice and discards the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,14 @@

from odoo.tests.common import TransactionCase

from odoo.addons.base.tests.common import DISABLED_MAIL_CONTEXT


class TestAccountInvoiceMargin(TransactionCase):
@classmethod
def setUpClass(cls):
super().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.env = cls.env(context=dict(cls.env.context, **DISABLED_MAIL_CONTEXT))
cls.journal = cls.env["account.journal"].create(
{"name": "Test journal", "type": "sale", "code": "TEST_J"}
)
Expand Down