From 876c2c33e8f1f50799cf2af5dfebca13a0c4cd4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Voet=20=28ryv=29?= Date: Mon, 21 Dec 2020 10:54:28 +0000 Subject: [PATCH] [REF] mrp: remove indexes of `mrp.production` (`date_x`) Remove index on fields `date_start` and `date_finished`. Both has not used expected in the gantt view `view_production_gantt` which not used anymore (and have no sense because it should use `date_planned_start` and `date_planned_finished` instead. Remove this old gantt view too. task-2389380 --- addons/mrp/models/mrp_production.py | 4 ++-- addons/mrp/views/mrp_production_views.xml | 9 --------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/addons/mrp/models/mrp_production.py b/addons/mrp/models/mrp_production.py index cbcbf024057..235ea0ee642 100644 --- a/addons/mrp/models/mrp_production.py +++ b/addons/mrp/models/mrp_production.py @@ -136,8 +136,8 @@ class MrpProduction(models.Model): date_deadline = fields.Datetime( 'Deadline', copy=False, store=True, readonly=True, compute='_compute_date_deadline', inverse='_set_date_deadline', help="Informative date allowing to define when the manufacturing order should be processed at the latest to fulfill delivery on time.") - date_start = fields.Datetime('Start Date', copy=False, index=True, readonly=True) - date_finished = fields.Datetime('End Date', copy=False, index=True, readonly=True) + date_start = fields.Datetime('Start Date', copy=False, readonly=True, help="Date of the WO") + date_finished = fields.Datetime('End Date', copy=False, readonly=True, help="Date when the MO has been close") bom_id = fields.Many2one( 'mrp.bom', 'Bill of Material', readonly=True, states={'draft': [('readonly', False)]}, diff --git a/addons/mrp/views/mrp_production_views.xml b/addons/mrp/views/mrp_production_views.xml index 970816fe08c..b4ffe552d45 100644 --- a/addons/mrp/views/mrp_production_views.xml +++ b/addons/mrp/views/mrp_production_views.xml @@ -425,15 +425,6 @@ - - mrp.production.gantt - mrp.production - - - - - - mrp.production.pivot mrp.production