[IMP] default priority if no moves in picking
authorJosse Colpaert <jco@odoo.com>
Mon, 23 Jun 2014 07:30:42 +0000 (09:30 +0200)
committerChristophe Simonis <chs@odoo.com>
Thu, 10 Jul 2014 17:03:33 +0000 (19:03 +0200)
addons/stock/stock.py

index 25d67dd..be91edd 100644 (file)
@@ -635,7 +635,7 @@ class stock_picking(osv.osv):
         """
         res = {}
         for id in ids:
-            res[id] = {'min_date': False, 'max_date': False}
+            res[id] = {'min_date': False, 'max_date': False, 'priority': '1'}
         if not ids:
             return res
         cr.execute("""select