[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:
parent
43d6943a4c
commit
683fbd05a7
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue