The pos.order.line quantity wasn't considered when computing the discount amount. E.g. buying 5 products (1$) at 50% would only show 0.5$ as discount_amount, instead of 2.5$. Followup of #43587 closes odoo/odoo#51872 X-original-commit: 96e96284fceb2f68838c85f04c40da65176eb006 Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>