Replace int to float round qty when is not null in compute_quantities_query method

From changeset-08a0f931651b
This commit is contained in:
Raimon Esteve 2019-05-07 10:41:59 +02:00
parent bf2dc119fd
commit 35cac8a2b6
1 changed files with 1 additions and 1 deletions

View File

@ -88,6 +88,6 @@ diff -r f95dbecc064f trytond/trytond/modules/stock/move.py
location = key[0]
uom = default_uom[id_getter(key)]
- quantities[key] = uom.round(quantity)
+ quantities[key] = uom.round(quantity) if quantity else 0
+ quantities[key] = uom.round(quantity) if quantity else 0.0
return quantities