Skip to content

19.0 Global discount on purchase - pupat#1214

Draft
pupat-odoo wants to merge 1 commit intoodoo:19.0-purchase-order-global-discount-pupatfrom
odoo-dev:19.0-purchase-order-global-discount-pupat
Draft

19.0 Global discount on purchase - pupat#1214
pupat-odoo wants to merge 1 commit intoodoo:19.0-purchase-order-global-discount-pupatfrom
odoo-dev:19.0-purchase-order-global-discount-pupat

Conversation

@pupat-odoo
Copy link
Copy Markdown

Title : Add Global Discount Wizard in Purchase Order

Description:

  • Added a button in the Purchase Order form to apply a global discount using a wizard. The wizard takes a discount percentage and applies it to all order lines.

Changes:

  • Added "Apply Discount" button in Purchase Order view
  • Created wizard (purchase.discount.wizard)
  • Applied discount to all purchase.order.line records
  • Extended order line with discount field

Result :

  • Users can easily apply a single discount across all purchase order lines via a popup wizard.

…er lines.

Purpose :

- Applying global discount to all order lines , avoids the manual setting of indivial discount enrtries.

- Allows discount value to be represented in native monetary values.

Features :

- Added a discount button below the order lines which opens a wizard dialog box.

- Implemented  wizard view for adding the discount value with its specific type.

-  with a single click on  'Apply' button, all the order lines amount get updated with new one.

Technical insights:

1) Added 'purchase_order' model which is implemented using Transient model.

2) 'purchase_order_discount'  wizard view added .
@robodoo
Copy link
Copy Markdown

robodoo commented Mar 27, 2026

This PR targets the un-managed branch odoo/tutorials:19.0-purchase-order-global-discount-pupat, it needs to be retargeted before it can be merged.

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