Purchase order lines with discounts
by Odoo S.A. https://github.com/OCA/purchase-workflow , Acysos S.L. https://github.com/OCA/purchase-workflow , Tecnativa https://github.com/OCA/purchase-workflow , ACSONE SA/NV https://github.com/OCA/purchase-workflow , GRAP https://github.com/OCA/purchase-workflow , Odoo Community Association (OCA) https://github.com/OCA/purchase-workflowAvailability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
•
Purchase Management (purchase)
• Inventory Management (stock) • Discuss (mail) |
Lines of code | 149 |
Technical Name |
purchase_discount |
License | AGPL-3 |
Versions | 8.0 9.0 10.0 11.0 12.0 13.0 14.0 15.0 16.0 |
Discount in purchase orders
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.
Usage
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. 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.
Credits
Contributors
- OpenERP S.A.
- Ignacio Ibeas <ignacio@acysos.com>
- Pedro M. Baeza <pedro.baeza@tecnativa.com>
Icon
- Original Odoo purchase module icon
- https://openclipart.org/detail/159937/clothing-label-with-rope
Maintainer

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.
To contribute to this module, please visit https://odoo-community.org.
Please log in to comment on this module
Report comment
Any abuse of this reporting system will be penalizedError when installing
ProgrammingError: column l.discount does not exist LINE 33: sum((1.0 - COALESCE(l.discount, 0.0) / 100.0) * l.price_... Is there any fix? Am I doing something wrong?
There are no comments yet!