Add inactive patch stock_lot_fix_pick_product_without_outgoing_moves
This commit is contained in:
parent
f1f2e174db
commit
668a13eaa0
1
series
1
series
|
@ -77,3 +77,4 @@ issue7961002_40001.diff
|
|||
#024726_account_bank_remove_company.diff
|
||||
#024726_account_payment_type_remove_company.diff
|
||||
#stock_lot_improve_sync_inventory_to_outgoing.diff
|
||||
#stock_lot_fix_pick_product_without_outgoing_moves.diff
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
diff -r 65f34a12a887 stock.py
|
||||
--- a/trytond/trytond/modules/stock_lot/stock.py Mon Nov 02 11:25:25 2015 +0100
|
||||
+++ b/trytond/trytond/modules/stock_lot/stock.py Mon Nov 02 11:26:16 2015 +0100
|
||||
@@ -127,7 +127,7 @@
|
||||
continue
|
||||
quantity = Uom.compute_qty(move.uom, move.quantity,
|
||||
move.product.default_uom, round=False)
|
||||
- outgoing_moves = outgoing_by_product[move.product.id]
|
||||
+ outgoing_moves = outgoing_by_product.get(move.product.id, [])
|
||||
while outgoing_moves and quantity > 0:
|
||||
out_move = outgoing_moves.pop()
|
||||
out_quantity = Uom.compute_qty(out_move.uom,
|
Loading…
Reference in New Issue