projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
ffda023
)
[FIX] Avoid endless loop when doing a return picking
author
Josse Colpaert
<jco@odoo.com>
Tue, 2 Dec 2014 16:24:26 +0000
(17:24 +0100)
committer
Denis Ledoux
<dle@odoo.com>
Tue, 2 Dec 2014 17:54:25 +0000
(18:54 +0100)
addons/stock/wizard/stock_return_picking.py
patch
|
blob
|
history
diff --git
a/addons/stock/wizard/stock_return_picking.py
b/addons/stock/wizard/stock_return_picking.py
index
112b233
..
deb624e
100644
(file)
--- a/
addons/stock/wizard/stock_return_picking.py
+++ b/
addons/stock/wizard/stock_return_picking.py
@@
-103,7
+103,7
@@
class stock_return_picking(osv.osv_memory):
# Cancel assignment of existing chained assigned moves
moves_to_unreserve = []
for move in pick.move_lines:
- to_check_moves = [move.move_dest_id]
+ to_check_moves = [move.move_dest_id] if move.move_dest_id.id else []
while to_check_moves:
current_move = to_check_moves.pop()
if current_move.state not in ('done', 'cancel') and current_move.reserved_quant_ids: