From cbcdac469d358f12376500ed5ed7957220d1a2b6 Mon Sep 17 00:00:00 2001 From: William Henrotin Date: Mon, 5 Aug 2019 13:26:02 +0000 Subject: [PATCH] [FIX] mrp: send correct id via context On the manufacturing order form view, the 'update' button to change the production quantity doesn't give the current mo id to the wizard. That means 'active_id' is used. The issue is 'active_id' may refer to another object (a bom or a workcenter for instance). This commit fills the default_mo_id key in the context before calling the wizard to ensure the correct production order is used in the wizard default get. Task : 2043136 closes odoo/odoo#35453 Signed-off-by: Simon Lejeune (sle) --- addons/mrp/views/mrp_production_views.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/mrp/views/mrp_production_views.xml b/addons/mrp/views/mrp_production_views.xml index 93b84457fc8..93deefe32c6 100644 --- a/addons/mrp/views/mrp_production_views.xml +++ b/addons/mrp/views/mrp_production_views.xml @@ -99,6 +99,7 @@