-
- Downloads
[FIX] uom: avoid unneeded qty conversion and fields fetching
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#72433
Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
Please register or sign in to comment