oca-purchase/odoo-bringout-oca-purchase-workflow-purchase_discount/purchase_discount
Ernad Husremovic 6cea6fda94 chore: bs translation fix sinkroniz→sinhroniz
🤖 assisted by claude
2026-01-13 17:15:35 +01:00
..
i18n chore: bs translation fix sinkroniz→sinhroniz 2026-01-13 17:15:35 +01:00
images Add oca-purchase submodule with 96 purchase modules moved from oca-workflow-process 2025-08-30 18:00:40 +02:00
models Add oca-purchase submodule with 96 purchase modules moved from oca-workflow-process 2025-08-30 18:00:40 +02:00
readme Add oca-purchase submodule with 96 purchase modules moved from oca-workflow-process 2025-08-30 18:00:40 +02:00
report Add oca-purchase submodule with 96 purchase modules moved from oca-workflow-process 2025-08-30 18:00:40 +02:00
static/description Add oca-purchase submodule with 96 purchase modules moved from oca-workflow-process 2025-08-30 18:00:40 +02:00
tests Add oca-purchase submodule with 96 purchase modules moved from oca-workflow-process 2025-08-30 18:00:40 +02:00
views Add oca-purchase submodule with 96 purchase modules moved from oca-workflow-process 2025-08-30 18:00:40 +02:00
__init__.py Add oca-purchase submodule with 96 purchase modules moved from oca-workflow-process 2025-08-30 18:00:40 +02:00
__manifest__.py Add oca-purchase submodule with 96 purchase modules moved from oca-workflow-process 2025-08-30 18:00:40 +02:00
README.rst Add oca-purchase submodule with 96 purchase modules moved from oca-workflow-process 2025-08-30 18:00:40 +02:00

.. image:: https://odoo-community.org/readme-banner-image
   :target: https://odoo-community.org/get-involved?utm_source=readme
   :alt: Odoo Community Association

===================================
Purchase order lines with discounts
===================================

.. 
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! This file is generated by oca-gen-addon-readme !!
   !! changes will be overwritten.                   !!
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! source digest: sha256:c81456deae3988fb4a367ed008e8bf96d21bbbb562fc9c7bb226fa016426b2b9
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
    :target: https://odoo-community.org/page/development-status
    :alt: Beta
.. |badge2| image:: https://img.shields.io/badge/license-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%2Fpurchase--workflow-lightgray.png?logo=github
    :target: https://github.com/OCA/purchase-workflow/tree/16.0/purchase_discount
    :alt: OCA/purchase-workflow
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
    :target: https://translation.odoo-community.org/projects/purchase-workflow-16-0/purchase-workflow-16-0-purchase_discount
    :alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
    :target: https://runboat.odoo-community.org/builds?repo=OCA/purchase-workflow&target_branch=16.0
    :alt: Try me on Runboat

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

This module allows to define a discount per line in the purchase orders. This
discount can be also negative, interpreting it as an increment.

It also modifies the purchase order report to include the discount field in it.

This module allows to input a discount in the supplier info form, and propagate
it to purchase order lines:

* The discount appears explicitly in purchase orders instead of being directly
  discounted in price.
* You can set prices and discounts on the same screen.

.. image:: https://raw.githubusercontent.com/OCA/purchase-workflow/16.0/purchase_discount/static/description/product_supplierinfo_form.png


* A new field default_supplierinfo_discount is added on res.partner model.
  This value will be used as the default one, on each supplierinfo of that
  supplier.

.. image:: https://raw.githubusercontent.com/OCA/purchase-workflow/16.0/purchase_discount/static/description/res_partner_company_form.png


Note: this setting is a new 'company' setting, unavailable for related
partners, as accounting-related Settings.

.. image:: https://raw.githubusercontent.com/OCA/purchase-workflow/16.0/purchase_discount/static/description/res_partner_individual_form.png

**Table of contents**

.. contents::
   :local:

Usage
=====

Go to **Purchase > Products**, open one product, and edit or add a record on
the **Vendors** section of the **Purchase** tab. You will see in the prices
section in the down part a new column called **Discount (%)**. You can enter
here the desired discount for that quantity.

When you make a purchase order for that supplier and that product, discount
will be put automatically.

Known issues / Roadmap
======================

With this module, the *price_unit* field of purchase order line stores the gross price instead of the net price, which is a change in the meaning of
this field. So this module breaks all the other modules that use the *price_unit* field with it's native meaning.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/purchase-workflow/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/purchase-workflow/issues/new?body=module:%20purchase_discount%0Aversion:%2016.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
~~~~~~~

* Tiny
* Acysos S.L.
* Tecnativa
* ACSONE SA/NV
* GRAP

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

* OpenERP S.A.
* Ignacio Ibeas <ignacio@acysos.com>
* Pedro M. Baeza <pedro.baeza@tecnativa.com>
* Jonathan Nemry <jonathan.nemry@acsone.eu>
* Sylvain LE GAL (https://twitter.com/legalsylvain)
* Stefan Rijnhart <stefan@opener.amsterdam>
* `Tecnativa <https://www.tecnativa.com>`_:

  * Pedro M. Baeza
  * Vicent Cubells <vicent.cubells@tecnativa.com>

* Sudhir Arya <sudhir@erpharbor.com>
* Lorenzo Battistini <https://github.com/eLBati>
* Luisa Miguéns <luisa.miguens@solvos.es>
* Vishnu Vanneri <vanneri.odoodev@gmail.com>
* Moaad Bourhim <moaad.bourhim@gmail.com>

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.

This module is part of the `OCA/purchase-workflow <https://github.com/OCA/purchase-workflow/tree/16.0/purchase_discount>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.