diff --git a/addons/procurement/models/procurement.py b/addons/procurement/models/procurement.py index 1f2e00043f4..43b788b0726 100644 --- a/addons/procurement/models/procurement.py +++ b/addons/procurement/models/procurement.py @@ -53,7 +53,7 @@ class ProcurementRule(models.Model): ''' A rule describe what a procurement should do; produce, buy, move, ... ''' _name = 'procurement.rule' _description = "Procurement Rule" - _order = "name" + _order = "sequence, name" name = fields.Char( 'Name', required=True, translate=True, diff --git a/addons/procurement/views/procurement_views.xml b/addons/procurement/views/procurement_views.xml index 1d4595b0fa8..6dcc138b80b 100644 --- a/addons/procurement/views/procurement_views.xml +++ b/addons/procurement/views/procurement_views.xml @@ -252,6 +252,7 @@ + @@ -280,7 +281,7 @@ - + diff --git a/addons/stock/models/stock_location.py b/addons/stock/models/stock_location.py index c425c9d0ce9..854a6c0da84 100644 --- a/addons/stock/models/stock_location.py +++ b/addons/stock/models/stock_location.py @@ -165,7 +165,7 @@ class Route(models.Model): class PushedFlow(models.Model): _name = "stock.location.path" _description = "Pushed Flow" - _order = "name" + _order = "sequence, name" name = fields.Char('Operation Name', required=True) company_id = fields.Many2one( diff --git a/addons/stock/views/stock_location_views.xml b/addons/stock/views/stock_location_views.xml index cd7e6afe5a0..432bb8bfdef 100644 --- a/addons/stock/views/stock_location_views.xml +++ b/addons/stock/views/stock_location_views.xml @@ -158,6 +158,7 @@ stock.location.path + @@ -182,7 +183,7 @@ - +