Remove pick product without outgoing moves diff
issue5995
This commit is contained in:
parent
0935923562
commit
0aa2a9c225
1
series
1
series
|
@ -91,7 +91,6 @@ fix_rounding_in_sync_inventory_to_outgoing.patch
|
|||
#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
|
||||
#purchase_fix_get_move_done_rounding.diff
|
||||
#multicompany_cron.diff
|
||||
025476_5154_5155_5456_optimize_move_write_assign.diff
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
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