Skip to main content

General discount per purchase order

Project description

Odoo Community Association

Purchase Order General Discount

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

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 which line field the discount will be applied.

Table of contents

Configuration

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:

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

Usage

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 to smash it by providing a detailed and welcomed feedback.

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

Credits

Authors

  • Tecnativa

Contributors

Maintainers

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file odoo_addon_purchase_order_general_discount-19.0.1.0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for odoo_addon_purchase_order_general_discount-19.0.1.0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4a4ccae2046b9bc6cedc7da10f55502c61db9ee920d4f5db5c37635bfa356c72
MD5 2491dfcc1f3dc2be0544c35b05ab3583
BLAKE2b-256 2f649a650ae7d06cb50332b7b2ec9fbad85d2e5ad9f34769eb99e572d3476d20

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page