From 5df928f279eef6e965b9ff40feed4454ce9d9e2c Mon Sep 17 00:00:00 2001 From: "Tiffany Chang (tic)" Date: Fri, 11 Dec 2020 14:13:09 +0000 Subject: [PATCH] [FIX] mrp: make done unbuild form readonly Some added readonly attributes in the unbuild form view were overriding the `states={'done': [('readonly', True)]}` attributes in the models' fields. So we add the readonly when state='done' to the view as well. Note that same issue exists in saas-12.3 and 13.0, but only for 2 of the 4 fields fixed in this commit (i.e. it probably isn't a big deal for these older versions.) Discovered during task: 2033341 closes odoo/odoo#64815 X-original-commit: 8bfa9efd989f4123b021c47f13cfe324eeb14013 Signed-off-by: Arnold Moyaux --- addons/mrp/views/mrp_unbuild_views.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/mrp/views/mrp_unbuild_views.xml b/addons/mrp/views/mrp_unbuild_views.xml index b2c881b51eb..70e42460796 100644 --- a/addons/mrp/views/mrp_unbuild_views.xml +++ b/addons/mrp/views/mrp_unbuild_views.xml @@ -102,13 +102,13 @@ - + - +