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
d49ed1e
[MIG] account_invoice_margin_sale: Migration to 16.0
ljsalvatierra-factorlibre May 22, 2023
78e85c9
[MIG] account_invoice_margin_sale: Migration to 16.0
ljsalvatierra-factorlibre Jun 5, 2023
57cccd2
[UPD] Update account_invoice_margin_sale.pot
Jun 5, 2023
ba2ee27
Added translation using Weblate (French (France) (fr_FR))
sanrav Jun 5, 2023
558c4bd
Translated using Weblate (French (France) (fr_FR))
sanrav Jun 5, 2023
70c7fb7
Translated using Weblate (Spanish)
Gelo-fl Jun 7, 2023
35c2914
[IMP] account_invoice_margin_sale: test performance improvement
josep-tecnativa Oct 20, 2023
6777ee6
[FIX] account_invoice_margin_sale: error creating invoice from sale o…
dreispt Jan 8, 2024
7efc12c
Added translation using Weblate (Italian)
mymage Jan 22, 2024
cbea55a
Translated using Weblate (Italian)
mymage Jan 29, 2024
1f38e64
[IMP] account_invoice_margin_sale: pre-commit auto fixes
Feb 19, 2024
7fa4528
[MIG] account_invoice_margin_sale: Migration to 17.0
Feb 19, 2024
73ff048
[MIG] account_invoice_margin_sale: Migration to 18.0
BhaveshHeliconia Feb 14, 2025
0592f4f
[UPD] Update account_invoice_margin_sale.pot
Apr 22, 2025
946541a
[BOT] post-merge updates
OCA-git-bot Apr 22, 2025
25bfe90
[MIG] account_invoice_margin_sale: Migration to 19.0
Debora7 Jan 8, 2026
c230d6b
Pre-commit fixes.
Debora7 Jan 8, 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
Next Next commit
[UPD] Update account_invoice_margin_sale.pot
  • Loading branch information
oca-travis authored and Debora7 committed Jan 8, 2026
commit 5865087e1245e39dcfbe1dae1edaee6d33e48c4e
92 changes: 92 additions & 0 deletions account_invoice_margin_sale/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
===========================
Account Invoice Margin Sale
===========================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
:target: https://odoo-community.org/page/development-status
:alt: Production/Stable
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fmargin--analysis-lightgray.png?logo=github
:target: https://github.com/OCA/margin-analysis/tree/13.0/account_invoice_margin_sale
:alt: OCA/margin-analysis
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/margin-analysis-13-0/margin-analysis-13-0-account_invoice_margin_sale
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/132/13.0
:alt: Try me on Runbot

|badge1| |badge2| |badge3| |badge4| |badge5|

This module allows transfer purchase price from sale order line to invoice.

**Table of contents**

.. contents::
:local:

Installation
============

This module is autoinstalable.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/margin-analysis/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/margin-analysis/issues/new?body=module:%20account_invoice_margin_sale%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* Tecnativa

Contributors
~~~~~~~~~~~~

* `Tecnativa <https://www.tecnativa.com>`__:

* Sergio Teruel
* Carlos Dauden

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

.. |maintainer-sergio-teruel| image:: https://github.com/sergio-teruel.png?size=40px
:target: https://github.com/sergio-teruel
:alt: sergio-teruel
.. |maintainer-carlosdauden| image:: https://github.com/carlosdauden.png?size=40px
:target: https://github.com/carlosdauden
:alt: carlosdauden

Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-sergio-teruel| |maintainer-carlosdauden|

This module is part of the `OCA/margin-analysis <https://github.com/OCA/margin-analysis/tree/13.0/account_invoice_margin_sale>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions account_invoice_margin_sale/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).

from . import models
19 changes: 19 additions & 0 deletions account_invoice_margin_sale/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright 2017-2018 Tecnativa - Sergio Teruel
# Copyright 2019 Tecnativa - Carlos Dauden
# License AGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).

{
"name": "Account Invoice Margin Sale",
"summary": "Set margin in invoices from sale orders",
"version": "13.0.1.0.0",
"development_status": "Production/Stable",
"maintainers": ["sergio-teruel", "carlosdauden"],
"category": "Account",
"website": "https://github.com/OCA/margin-analysis",
"author": "Tecnativa, " "Odoo Community Association (OCA)",
"license": "AGPL-3",
"application": False,
"installable": True,
"auto_install": True,
"depends": ["sale_margin", "account_invoice_margin"],
}
19 changes: 19 additions & 0 deletions account_invoice_margin_sale/i18n/account_invoice_margin_sale.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_margin_sale
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: account_invoice_margin_sale
#: model:ir.model,name:account_invoice_margin_sale.model_sale_order_line
msgid "Sales Order Line"
msgstr ""
3 changes: 3 additions & 0 deletions account_invoice_margin_sale/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import sale
14 changes: 14 additions & 0 deletions account_invoice_margin_sale/models/sale.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2017-2018 Tecnativa - Sergio Teruel
# Copyright 2019 Tecnativa - Carlos Dauden
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import models


class SaleOrderLine(models.Model):
_inherit = "sale.order.line"

def _prepare_invoice_line(self):
vals = super()._prepare_invoice_line()
vals["purchase_price"] = self.purchase_price
return vals
4 changes: 4 additions & 0 deletions account_invoice_margin_sale/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
* `Tecnativa <https://www.tecnativa.com>`__:

* Sergio Teruel
* Carlos Dauden
1 change: 1 addition & 0 deletions account_invoice_margin_sale/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This module allows transfer purchase price from sale order line to invoice.
1 change: 1 addition & 0 deletions account_invoice_margin_sale/readme/INSTALL.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This module is autoinstalable.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading