[IMP] orm: make creation of dict from key names (with constant value) clearer
also only generate False values for float and integer fields, since they're the only aggregated values in the first place bzr revid: xmo@openerp.com-20111115114527-t92a37kdw4yqqs4p
This commit is contained in:
+1
-1
@@ -2486,7 +2486,7 @@ class BaseModel(object):
|
||||
if (pos<len(data)) and (data[pos][groupby][0] == stages[pos][0]):
|
||||
pos+=1
|
||||
continue
|
||||
val = dict(map(lambda x: (x, False), fields))
|
||||
val = dict.fromkeys(float_int_fields, False)
|
||||
val.update({
|
||||
groupby: stages[pos],
|
||||
'__domain': [(groupby, '=', stages[pos][0])]+domain,
|
||||
|
||||
Reference in New Issue
Block a user