mirror of
https://github.com/NaN-tic/trytond-patches.git
synced 2023-12-14 06:03:03 +01:00
add quantity field on stock_lot_sled
This commit is contained in:
parent
b7a8c1f5fe
commit
17c8788128
5
series
5
series
|
@ -18,8 +18,9 @@ search_warehouse.diff #[stock] search function for warehouse.
|
|||
improve_performance_on_try_assign.diff # [stock] change browse of product to get default_uom to pysql
|
||||
|
||||
issue240_631.diff # [stock_lot] stock_by_locations get all locations with that lot.
|
||||
issue10467.diff # [stock_lot] add lot to grouping if lot it's required on product
|
||||
issue53451002_1_10001.diff # [stock] Allow configuring which quantity is grouped in compute_quantities_query() needed by stock_number_of_packages
|
||||
issue10467.diff # stock_lot: add lot to grouping if lot it's required on product
|
||||
issue53451002_1_10001.diff #stock: Allow configuring which quantity is grouped in compute_quantities_query() needed by stock_number_of_packages
|
||||
stock_lot_sled.diff: #stock_lot_sled: Allow configuring which quantity is grouped in compute_quantities_query() needed by stock_number_of_packages
|
||||
issue7826.diff # [stock_package] Total packages moves are all
|
||||
lock_stock_move.diff # [stock] Function to overwrite if lock table or not
|
||||
issue7856.diff # [stock] Can't move qty from a parent location to child location
|
||||
|
|
22
stock_lot_sled.diff
Normal file
22
stock_lot_sled.diff
Normal file
|
@ -0,0 +1,22 @@
|
|||
diff -r fb7f3b05e343 stock.py
|
||||
--- a/trytond/trytond/stock_lot_sled/stock.py Mon Apr 23 17:44:40 2018 +0200
|
||||
+++ b/trytond/trytond/stock_lot_sled/stock.py Wed Nov 14 11:12:49 2018 +0100
|
||||
@@ -229,7 +229,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')
|
||||
@@ -237,7 +238,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()
|
Loading…
Reference in a new issue