From e2b965cd89b465539ac5c7161d58448c72199895 Mon Sep 17 00:00:00 2001 From: "Touati Djamel (otd)" Date: Thu, 25 Nov 2021 11:17:13 +0000 Subject: [PATCH] [FIX] stock, mrp: fix the manufacturing product moves filter Steps to reproduce the bug: - Create a storable product > add a BOM - Create a MO> add the product > confirm > Mark as done - Go to the product form > click on product moves - The move linked to the MO is displayed - Add the "Manufacturing" filter - No move is displayed Solution: Display all "stock.move.line" which are linked to a "stock.move" with a "mrp.production" Bug2: The "Manufacturing" filter should be defined in the MRP module instead of the stock otherwise, users who do not have MRP installed will have access to this filter as well opw-2697254 closes odoo/odoo#80578 X-original-commit: f4ab29a19f0aaac567da27d4c4d5c79119982bc6 Signed-off-by: William Henrotin (whe) Signed-off-by: Djamel Touati (otd) --- addons/mrp/views/stock_move_views.xml | 12 ++++++++++++ addons/stock/views/stock_move_line_views.xml | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/addons/mrp/views/stock_move_views.xml b/addons/mrp/views/stock_move_views.xml index 544c7ee0fbb..31a765aded7 100644 --- a/addons/mrp/views/stock_move_views.xml +++ b/addons/mrp/views/stock_move_views.xml @@ -40,6 +40,18 @@ + + stock.move.line.search + stock.move.line + + + + 0 + [('move_id.production_id', '!=', False)] + + + + - +