From c8df0333f5aca04d2923c34f4efa9d79b50d4a3f Mon Sep 17 00:00:00 2001 From: Nicolas Lempereur Date: Thu, 14 Dec 2017 12:54:00 +0100 Subject: [PATCH] [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 --- addons/mrp/mrp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mrp/mrp.py b/addons/mrp/mrp.py index 9755b53bc9c..f8de7e29320 100644 --- a/addons/mrp/mrp.py +++ b/addons/mrp/mrp.py @@ -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):