[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:
Nicolas Lempereur
2017-12-14 12:57:22 +01:00
parent 228f6086b1
commit c8df0333f5
+1 -1
View File
@@ -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):