Steps to reproduce: - Create a stockable product P with 2 quantity on hand - Choose a delivery order in state 'done', unlock it and add a line with P - Try to set 2 as done quantity and confirm the wizard Bug: A ZeroDivisionError(float division by zero) was raised. opw:1886735 closes odoo/odoo#27547