23 lines
921 B
Diff
23 lines
921 B
Diff
diff -r 0d630a58366a stock.py
|
|
--- a/trytond/trytond/modules/stock_lot_sled/stock.py Wed May 01 18:05:26 2019 +0200
|
|
+++ b/trytond/trytond/modules/stock_lot_sled/stock.py Mon May 06 23:42:38 2019 +0200
|
|
@@ -221,7 +221,8 @@
|
|
|
|
@classmethod
|
|
def compute_quantities_query(cls, location_ids, with_childs=False,
|
|
- grouping=('product',), grouping_filter=None):
|
|
+ grouping=('product',), grouping_filter=None,
|
|
+ quantity_field='internal_quantity'):
|
|
pool = Pool()
|
|
Date = pool.get('ir.date')
|
|
Lot = pool.get('stock.lot')
|
|
@@ -229,7 +230,7 @@
|
|
|
|
query = super(Move, cls).compute_quantities_query(
|
|
location_ids, with_childs=with_childs, grouping=grouping,
|
|
- grouping_filter=grouping_filter)
|
|
+ grouping_filter=grouping_filter, quantity_field=quantity_field)
|
|
|
|
context = Transaction().context
|
|
today = Date.today()
|