From da1e24f68bef9f90b9200d7c459502f6f1243af8 Mon Sep 17 00:00:00 2001 From: Bruno-brsy Date: Thu, 19 Aug 2021 14:41:31 +0000 Subject: [PATCH] [IMP] mrp UI improvement MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add some "optional=show" in MO and WO, to have the possibility to hide some columns Change the color of the state in MO list (we need to have the state draft in another color than grey) --- Links --- The PR: https://github.com/odoo/odoo/pull/75334 Task related: 2615395 closes odoo/odoo#75334 Signed-off-by: Rémy Voet --- addons/mrp/views/mrp_production_views.xml | 9 +++++++-- addons/mrp/views/mrp_workcenter_views.xml | 8 ++++---- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/addons/mrp/views/mrp_production_views.xml b/addons/mrp/views/mrp_production_views.xml index 974c7df5bab..25ae6b02fae 100644 --- a/addons/mrp/views/mrp_production_views.xml +++ b/addons/mrp/views/mrp_production_views.xml @@ -21,13 +21,18 @@ + - + @@ -235,7 +240,7 @@ attrs="{'readonly': ['|', ('state', '=', 'cancel'), '&', ('state', '=', 'done'), ('is_locked', '=', True)]}" options="{'delete': [('state', '=', 'draft')]}"> - + diff --git a/addons/mrp/views/mrp_workcenter_views.xml b/addons/mrp/views/mrp_workcenter_views.xml index df37fcd9cf9..12cc0157aad 100644 --- a/addons/mrp/views/mrp_workcenter_views.xml +++ b/addons/mrp/views/mrp_workcenter_views.xml @@ -34,13 +34,13 @@ - - + + - - + +