[FIX] ir_values: attempt to return items in a more deterministic order

lp bug: https://launchpad.net/bugs/630436 fixed

bzr revid: odo@openerp.com-20101004152337-35g54q0dw2b2qmf5
This commit is contained in:
rga@openerp.com 2010-10-04 17:23:37 +02:00 committed by Olivier Dony
parent 43d6943a4c
commit 683fbd05a7
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ class ir_values(osv.osv):
where.append('res_id=%s')
params.append(res_id)
where.append('(user_id=%s or (user_id IS NULL))')
where.append('(user_id=%s or (user_id IS NULL)) order by id')
params.append(uid)
clause = ' and '.join(where)
cr.execute('select id,name,value,object,meta, key from ir_values where ' + clause, params)