[IMP] stock: order rule by sequence,id instead of sequence,name
The purpose is to define a better sequence order by default. Rules's name generation is base on their location and warehouse name. Since locations order is not always the same than the alphabetical order, we would rather use the id.
This commit is contained in:
@@ -21,7 +21,7 @@ class StockRule(models.Model):
|
||||
""" A rule describe what a procurement should do; produce, buy, move, ... """
|
||||
_name = 'stock.rule'
|
||||
_description = "Stock Rule"
|
||||
_order = "sequence, name"
|
||||
_order = "sequence, id"
|
||||
|
||||
name = fields.Char(
|
||||
'Name', required=True, translate=True,
|
||||
|
||||
Reference in New Issue
Block a user