[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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user