odoo/tutorials#855
Created by Rohit Varshney (rvar)
Blocked
- Merge method
- Review
-
CI
- ci/style: (runtime 3s)
- ci/tutorial: (runtime 80s)
- label
- odoo-dev:18.0-global_discount_sale-rvar
- head
- acae4b4ece8c3c83db2b2ac3229bc3ca2a1437df
odoo/tutorials | |
---|---|
18.0 | #855 missing r+ |
master |
[FIX] sale: Recompute global discount on order line updates
- Fixed issue where global discount lines were not updating when products were
added, updated, or removed from a sale order. - Automatically removes global discount when no regular order lines remain.
- Groups discount lines by tax combinations to ensure correct tax calculations.
- Ensures discount line appears at the end of order lines using
sequence=999
. - Hooks into sale.order.line create/write/unlink to trigger discount updates.
This ensures accurate global discount behavior and maintains tax compliance.