From cb51c179d2a465f377f3bbbe2b31c08c8871d851 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Voet=20=28ryv=29?= Date: Mon, 21 Dec 2020 09:44:49 +0000 Subject: [PATCH] [REF] stock: remove index on `auto` of `stock.rule` A index of a 2 values columns is quite useless, and it is a lost of storage for nothing. Also, in this case it will be never used (expected in manual search). task-2389380 --- addons/stock/models/stock_rule.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/models/stock_rule.py b/addons/stock/models/stock_rule.py index 33c03361330..f9e2d273d91 100644 --- a/addons/stock/models/stock_rule.py +++ b/addons/stock/models/stock_rule.py @@ -85,7 +85,7 @@ class StockRule(models.Model): auto = fields.Selection([ ('manual', 'Manual Operation'), ('transparent', 'Automatic No Step Added')], string='Automatic Move', - default='manual', index=True, required=True, + default='manual', required=True, help="The 'Manual Operation' value will create a stock move after the current one. " "With 'Automatic No Step Added', the location is replaced in the original move.") rule_message = fields.Html(compute='_compute_action_message')