mirror of
https://github.com/NaN-tic/trytond-patches.git
synced 2023-12-14 06:03:03 +01:00
ensure quantity is zero tu sum
This commit is contained in:
parent
11f24315a3
commit
f71ea02b7e
2
series
2
series
|
@ -18,6 +18,8 @@ issue4482.diff # [stock] stock inventory misses company access rule
|
|||
search_warehouse.diff # [stock] search function for warehouse
|
||||
issue239_630.diff # [stock] get location quantity by product, product template or lot
|
||||
issue53451002_1_10001.diff # [stock] Allow configuring which quantity is grouped in compute_quantities_query() needed by stock_number_of_packages
|
||||
stock_quantity_to_zero.diff # [stock] Ensure to sum with value.
|
||||
|
||||
stock_lot_sled.diff # [stock_lot_sled] Allow configuring which quantity is grouped in compute_quantities_query() needed by stock_number_of_packages
|
||||
issue8394.diff # [stock_lot_sled] Allow configuring which quantity is grouped in compute_quantities_query() needed by stock_number_of_packages
|
||||
|
||||
|
|
11
stock_quantity_to_zero.diff
Normal file
11
stock_quantity_to_zero.diff
Normal file
|
@ -0,0 +1,11 @@
|
|||
diff -r 56fa7c97d5b7 move.py
|
||||
--- a/trytond/trytond/modules/stock/move.py Thu Jun 06 10:24:15 2019 +0200
|
||||
+++ b/trytond/trytond/modules/stock/move.py Thu Jun 06 10:25:02 2019 +0200
|
||||
@@ -1346,7 +1346,7 @@
|
||||
location = line[0]
|
||||
key = tuple(line[1:-1])
|
||||
quantity = line[-1]
|
||||
- quantities[(location,) + key] += quantity
|
||||
+ quantities[(location,) + key] += quantity or 0
|
||||
ids.add(id_getter(line))
|
||||
keys.add(key)
|
Loading…
Reference in a new issue