General discount per purchase order
Project description
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
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:
Go to Purchases > Configuration > Settings and Purchase Discount Field
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:
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:
Create a purchase order.
Either select a partner with a purchase general discount defined or set one in the summary section of the order.
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.
Credits
Contributors
-
David Vidal
Pedro M. Baeza
Rafael Blasco
Maintainers
This module is maintained by the OCA.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file odoo11_addon_purchase_order_general_discount-11.0.1.1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: odoo11_addon_purchase_order_general_discount-11.0.1.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 31.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/30.4.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.5.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca41970d164579f586ec2edd76ebee2b2b0495cb7f057407e331efc562fbf39c |
|
MD5 | bdf7b668a612959b893a0d8abda32523 |
|
BLAKE2b-256 | 05bedfe4d8cf46a3267fb025c12e284d9c9ac9e94c5751af8fd36d1df306e8b6 |