From 575b8f3764b7a579f7277d1fe41f5c03fde2a7ce Mon Sep 17 00:00:00 2001 From: Arnold Moyaux Date: Thu, 24 May 2018 15:57:59 +0200 Subject: [PATCH] [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. --- addons/stock/models/stock_traceability.py | 1 - 1 file changed, 1 deletion(-) diff --git a/addons/stock/models/stock_traceability.py b/addons/stock/models/stock_traceability.py index 9a9ec915e93..add1b9bd6e5 100644 --- a/addons/stock/models/stock_traceability.py +++ b/addons/stock/models/stock_traceability.py @@ -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: