[FIX] mrp: determine order of mrp.production
The order of production was first based on "priority DESC" and then "date_planned ASC". So for production with the same priority/date_planned the order is not deterministic. This commit make the order deterministic as it seems preferred. opw-784243 closes #21644
This commit is contained in:
+1
-1
@@ -622,7 +622,7 @@ class mrp_production(osv.osv):
|
||||
('name_uniq', 'unique(name, company_id)', 'Reference must be unique per Company!'),
|
||||
]
|
||||
|
||||
_order = 'priority desc, date_planned asc'
|
||||
_order = 'priority desc, date_planned asc, id'
|
||||
|
||||
def _check_qty(self, cr, uid, ids, context=None):
|
||||
for order in self.browse(cr, uid, ids, context=context):
|
||||
|
||||
Reference in New Issue
Block a user