[IMP] Make sure normal products will still work

This commit is contained in:
Josse Colpaert 2014-08-19 12:26:05 +02:00
parent 6a071b049d
commit 28421e1e85
1 changed files with 2 additions and 2 deletions

View File

@ -131,8 +131,8 @@ class StockMove(osv.osv):
#delete the move with original product which is not relevant anymore
move_obj.unlink(cr, SUPERUSER_ID, [move.id], context=context)
#return list of newly created move or the move id otherwise
return processed_ids or []
#return list of newly created move or the move id otherwise, unless there is no move anymore
return processed_ids or (not bis and [move.id]) or []
def action_confirm(self, cr, uid, ids, context=None):
move_ids = []