From 596f6bab3de425d4ef52bc594f92087ec6dfce2d Mon Sep 17 00:00:00 2001 From: Martin Maes Date: Thu, 20 Apr 2023 10:06:54 +0000 Subject: [PATCH] [FIX] mrp: MO planned when all WO are planned This pr fixes a bug where a validation error occurs in the timesheet wizard. Indeed, when the user enter manually a start or end date in a workorder, the whole MO becomes "plan". The problem here was that if the user opens the wizard of another workorder (on the same MO) that has no start/ end date set, and then if he saves (no matter if he changed something), it will trigger a validation error because the start and end date of the workorder is required in that view if the MO is planned. closes odoo/odoo#120386 X-original-commit: c9728858aa46e6cb1a3d39cbc8da8e175007e456 Signed-off-by: Arnold Moyaux (arm) --- addons/mrp/views/mrp_workorder_views.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/mrp/views/mrp_workorder_views.xml b/addons/mrp/views/mrp_workorder_views.xml index a17c23da570..d1badcc42fc 100644 --- a/addons/mrp/views/mrp_workorder_views.xml +++ b/addons/mrp/views/mrp_workorder_views.xml @@ -159,9 +159,9 @@