Hello,
I am experiencing an issue on Odoo v18 (Enterprise, Odoo.sh).
When I set a discount (%) on a sales order line and then modify only the quantity, the discount is automatically reset to 0.
Steps to reproduce:
- Create a quotation
- Add a product
- Enter a discount (e.g. 10%)
- Save
- Change only the quantity on the same line
Result: the discount is reset to 0
Expected: the discount should remain unchanged if only the quantity is modified
This behavior is problematic for our users, as they often adjust quantities after applying commercial discounts.
I found a similar issue reported on OCB (issue #1300), so I’m wondering:
- Is this a known bug in Odoo 18?
- Is there a standard setting or workaround to prevent this?
- Has anyone implemented a clean fix (without heavy customization)?
Any feedback would be greatly appreciated.
Thank you!