Add inactive patch stock_lot_fix_pick_product_without_outgoing_moves

This commit is contained in:
Guillem Barba 2015-11-02 11:28:30 +01:00
parent f1f2e174db
commit 668a13eaa0
2 changed files with 13 additions and 0 deletions

1
series
View File

@ -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

View File

@ -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,