Issue - Create a Price list and set 'Discount Policy' as "Show public price & discount to the customer " - Create an SO - Add a multiple product with at least one with price unit = 0 - Change the pricelist and update prices Cause Division by zero when calculating discount. Solution Calculate discount only if there is a price_unit. opw-2393790 closes odoo/odoo#63218 X-original-commit: 9f70f405bc453ce56b75d22a318c9fd72e8bd496 Signed-off-by: bon-odoo <nboulif@users.noreply.github.com>