From 2cb659aa7c3d287b62660c6ccf02cdbd50e5fc54 Mon Sep 17 00:00:00 2001 From: "Tiffany Chang (tic)" Date: Mon, 16 Aug 2021 14:00:59 +0000 Subject: [PATCH] [FIX] mrp: allow adding components to done mo when uom active Steps to reproduce: 1. Activiate "Units of Measure" setting 2. Create and "mark as done" a MO 3. Unlock MO (may need to activate MRP setting for locking/unlocking qty to consume to see button to unlock first) 4. Add a new component to MO and save. Expected result: New component added Actual result: Validation Error related to UoM This is due to all components' UoM being readonly once the MO is Done so when the new component move is created, it is missing a UoM value. We fix this by making any newly added component lines' UoM not readonly regardless of MO status. When a user saves a MO after adding a new component, they will not be able to edit the UoM again due to quant/stock move inconsistencies this can cause. closes odoo/odoo#75436 Opw: 2514262 X-original-commit: ab0fcdbceef3e2df7b89766b074c386465c60ad7 Signed-off-by: Arnold Moyaux --- addons/mrp/views/mrp_production_views.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mrp/views/mrp_production_views.xml b/addons/mrp/views/mrp_production_views.xml index 607572ac5db..c7ad4bb69a0 100644 --- a/addons/mrp/views/mrp_production_views.xml +++ b/addons/mrp/views/mrp_production_views.xml @@ -283,7 +283,7 @@ - +