Skip to content

Comments

[ADD] po_global_discount: add module to apply global discounts on purchase order#1183

Draft
isgos-odoo wants to merge 1 commit intoodoo:19.0from
odoo-dev:19.0-purchase-global-discount-isgos
Draft

[ADD] po_global_discount: add module to apply global discounts on purchase order#1183
isgos-odoo wants to merge 1 commit intoodoo:19.0from
odoo-dev:19.0-purchase-global-discount-isgos

Conversation

@isgos-odoo
Copy link

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: Extended purchase.order form and created wizard form view.

@robodoo
Copy link

robodoo commented Feb 18, 2026

Pull request status dashboard

…chase orders

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: Extended `purchase.order` form and created wizard form view.
@isgos-odoo isgos-odoo force-pushed the 19.0-purchase-global-discount-isgos branch from 939f1dd to 6027129 Compare February 18, 2026 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants