[FIX] osv/fields.py: fix sum in rev 48dfd70
This commit is contained in:
parent
754cbf2d73
commit
43756a24ca
|
@ -1567,8 +1567,8 @@ class property(function):
|
||||||
values = ir_property.get_multi(cr, uid, prop_name, obj._name, ids, context=context)
|
values = ir_property.get_multi(cr, uid, prop_name, obj._name, ids, context=context)
|
||||||
if column._type == 'many2one':
|
if column._type == 'many2one':
|
||||||
# name_get the non-null values as SUPERUSER_ID
|
# name_get the non-null values as SUPERUSER_ID
|
||||||
vals = sum(set(filter(None, values.itervalues())))
|
vals = set(filter(None, values.itervalues()))
|
||||||
vals_name = dict(vals.sudo().name_get()) if vals else {}
|
vals_name = dict(sum(vals).sudo().name_get()) if vals else {}
|
||||||
for id, value in values.iteritems():
|
for id, value in values.iteritems():
|
||||||
ng = False
|
ng = False
|
||||||
if value and value.id in vals_name:
|
if value and value.id in vals_name:
|
||||||
|
|
Loading…
Reference in New Issue