ODOO ->Login->Create Quotation->Confirm Sale->Create Invoice->Validate->Register Payment. Now refund the same invoice. When the refund is processed for such an invoice having a discount, the refund invoice does not account for the discounted amount, instead only the pre-discount amount gets refunded. The following are the screenshots from QA04. The invoice with Discount
Refund of the invoice showing the pre-discount amount