[FIX] stock: Diplay return in tracability report

Since saas-11.2 stock_tracability refactoring do not use
level on moves orig/dest and filter on return is
not usefull anymore. It should display all return order
by date.

This commit remove the codition on the return inside the search
on move lines.
This commit is contained in:
Arnold Moyaux
2018-05-28 15:46:10 +02:00
parent 2aeb763768
commit 575b8f3764
@@ -56,7 +56,6 @@ class MrpStockReport(models.TransientModel):
lines = move_line.search([
('lot_id', '=', context.get('lot_name') or rec_id),
('state', '=', 'done'),
('move_id.returned_move_ids', '=', False),
])
if model == 'stock.move.line':
for line in lines: