[FIX] stock location tree needs sort
authorAntony Lesuisse <al@openerp.com>
Mon, 8 Nov 2010 18:27:35 +0000 (19:27 +0100)
committerAntony Lesuisse <al@openerp.com>
Mon, 8 Nov 2010 18:27:35 +0000 (19:27 +0100)
lp bug: https://launchpad.net/bugs/651144 fixed

bzr revid: al@openerp.com-20101108182735-t37cs0548mriqw72

addons/stock/stock.py

index 4f76093..5c6ef0b 100644 (file)
@@ -69,7 +69,7 @@ class stock_location(osv.osv):
     _description = "Location"
     _parent_name = "location_id"
     _parent_store = True
-    _parent_order = 'id'
+    _parent_order = 'name'
     _order = 'parent_left'
 
     def name_get(self, cr, uid, ids, context=None):