[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
Draft
[ADD] po_global_discount: add module to apply global discounts on purchase order#1183isgos-odoo wants to merge 1 commit intoodoo:19.0from
isgos-odoo wants to merge 1 commit intoodoo:19.0from
Conversation
…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.
939f1dd to
6027129
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Apply Global Discount On Purchase Order
Key Features:
Technical Details:
purchase.orderform and created wizard form view.