This could save some time when `_compute_quantity` is used thousands times in request and there are thousands UOMs in the system * if qty is zero, then result is zero * if to_unit is the same, then result is `round((qty / factor) * factor) = round(qty)` --- opw-2549026 closes odoo/odoo#72582 X-original-commit: a122db226cdf801675daaee5a69bcb47a47ab174 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com> Signed-off-by: Ivan Yelizariev // IEL <yelizariev@users.noreply.github.com>