Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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

  • Tecnativa:

    • David Vidal

    • Pedro M. Baeza

    • Rafael Blasco

    • Carlos Roca

  • Aures TIC:

    • Jose Zambudio

    • Anna Martinez

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.

Metadata

Release files for odoo14-addon-purchase-order-general-discount 14.0.1.0.1.dev8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for odoo14-addon-purchase-order-general-discount 14.0.1.0.1.dev8
File Interpreter ABI Platform Actions
odoo14_addon_purchase_order_general_discount-14.0.1.0.1.dev8-py3-none-any.whl Python 3 none any Details for odoo14_addon_purchase_order_general_discount-14.0.1.0.1.dev8-py3-none-any.whl

Release files / odoo14_addon_purchase_order_general_discount-14.0.1.0.1.dev8-py3-none-any.whl

Download URL odoo14_addon_purchase_order_general_discount-14.0.1.0.1.dev8-py3-none-any.whl
Size 35.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
344b6caccee6dde0f76201820c4d1fb98d2f76d60674a5424f3307a0c83804fb
BLAKE2b-256 checksum
How to use checksums
bc99fcea993b7ca2fe8a51b5f91946fc63bc77b0a995278a133b580fce802e27
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.10

Security for odoo14-addon-purchase-order-general-discount 14.0.1.0.1.dev8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page