mirror of
https://github.com/NaN-tic/trytond-patches.git
synced 2023-12-14 06:03:03 +01:00
Replace int to float round qty when is not null in compute_quantities_query method
From changeset-08a0f931651b
This commit is contained in:
parent
bf2dc119fd
commit
35cac8a2b6
|
@ -88,6 +88,6 @@ diff -r f95dbecc064f trytond/trytond/modules/stock/move.py
|
||||||
location = key[0]
|
location = key[0]
|
||||||
uom = default_uom[id_getter(key)]
|
uom = default_uom[id_getter(key)]
|
||||||
- quantities[key] = uom.round(quantity)
|
- 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
|
return quantities
|
||||||
|
|
Loading…
Reference in a new issue