odoo/tutorials#1183
Created by Ishwargiri Goswami (isgos)
Blocked
- Merge method
- Review
-
CI
- ci/style: (runtime 2s)
- ci/tutorial: (runtime 144s)
- label
- odoo-dev:19.0-purchase-global-discount-isgos
- head
- 602712960a68460bbe13512db08814fd993db26e
| odoo/tutorials | |
|---|---|
| 19.0 | #1183 missing r+ |
| master |
[ADD] po_global_discount: add module to apply global discounts on purchase order
Apply Global Discount On Purchase Order
Key Features:
- Global Discount Wizard: Allows users to input a discount as either a fixed amount or a percentage.
- Dual Calculation Logic:
- Percentage: Directly applies the value to the 'discount' field on lines.
- Fixed Amount: Calculates the equivalent percentage based on the total order value and distributes it across lines.
- Validation: Displays a warning about potential rounding errors when using fixed amount mode.
Technical Details:
- Model: Created purchase.global.discount (TransientModel).
- Views: Extendedpurchase.order` form and created wizard form view.