v 11.0 v 12.0 Third Party 52
Download for v 12.0 Deploy on Odoo.sh
Required Apps Purchase (purchase)
Invoicing (account)
Inventory (stock)
Included Dependencies
Lines of code 407
Technical Name purchase_order_general_discount
Also available in version v 11.0
You bought this module and need support? Click here!

Purchase Order General Discount

Beta License: AGPL-3 OCA/purchase-workflow Translate me on Weblate Try me on Runbot

This module allows to set a general discount in a purchase order. This general discount is applied to each line order.

You can also set a default general discount on suppliers and configure to wich line field the discount will be applied.

Table of contents


You can set in settings another discount field to be applied. For example, if we had purchase_triple_discount, we could set the general discount in discount3 to be applied after all other discounts.

To do so:

  1. Go to Purchases > Configuration > Settings and Purchase Discount Field
  2. Select the discount you’d wish to use. purchase_triple_discount fields will appear when the module is installed.

There’s a method at res.company called _get_purchase_discount_fields that can be used to extend more line discount fields. For example, if we had the field discount4, we could extend it like this:

def _get_purchase_discount_fields(self):
    discount_fields = super()._get_purchase_discount_fields()
    discount_fields += [('discount4', _('Discount 4'))]
    return discount_fields


To set a partner default general discount you need to:

  1. Go to a partner and set the general discount in Sales & Purchases tab.

To set a general discount in a purchase order you need to:

  1. Create a purchase order.
  2. Either select a partner with a purchase general discount defined or set one in the summary section of the order.
  3. This discount will be applied to every line.

Bug Tracker

Bugs are tracked on GitHub 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.

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



  • Tecnativa


  • Tecnativa:

    • David Vidal
    • Pedro M. Baeza
    • Rafael Blasco
    • Carlos Roca


This module is maintained by the OCA.

Odoo Community Association

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 project on GitHub.

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

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.