[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
This commit is contained in:
Rémy Voet (ryv)
2020-12-22 12:42:59 +00:00
parent 58fc9e2733
commit cb51c179d2
+1 -1
View File
@@ -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')