From e74ecbbd6cfa0f542c5837d5c4ae78fdd547c4fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Voet=20=28ryv=29?= Date: Mon, 21 Dec 2020 10:05:10 +0000 Subject: [PATCH] [REF] mrp: remove index on `state` (`mrp.unbuild`) The state of `mrp.unbuild` is a boolean value (`draft` or `done`) which is already quite useless in the most of the case. Also this state is never used explicitly in the code (in a search), then it seems legit to remove it. task-2389380 --- addons/mrp/models/mrp_unbuild.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mrp/models/mrp_unbuild.py b/addons/mrp/models/mrp_unbuild.py index 83022c23a7d..db09b343a62 100644 --- a/addons/mrp/models/mrp_unbuild.py +++ b/addons/mrp/models/mrp_unbuild.py @@ -70,7 +70,7 @@ class MrpUnbuild(models.Model): string='Processed Disassembly Lines') state = fields.Selection([ ('draft', 'Draft'), - ('done', 'Done')], string='Status', default='draft', index=True) + ('done', 'Done')], string='Status', default='draft') allowed_mo_ids = fields.One2many('mrp.production', compute='_compute_allowed_mo_ids') @api.depends('company_id', 'product_id')