[IMP] ir_value: forgot to add some comment.
bzr revid: vmt@openerp.com-20110517141552-3hrj3itt7axxjol0
This commit is contained in:
parent
6a189e8c96
commit
b9b3251af5
|
@ -176,7 +176,9 @@ class ir_values(osv.osv):
|
|||
if key == 'default':
|
||||
# Make sure we get first the values for specific users, then
|
||||
# the global values. The map/filter below will retain the first
|
||||
# value for any given name.
|
||||
# value for any given name. The 'order by' will put the null
|
||||
# values last; this may be postgres specific (it is the
|
||||
# behavior in postgres at least since 8.2).
|
||||
order = 'user_id'
|
||||
where.append('(user_id=%s or (user_id IS NULL)) order by '+ order)
|
||||
params.append(uid)
|
||||
|
|
Loading…
Reference in New Issue