[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:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user