[FIX] Append view domain (in case of selection widget) to a copy of the field's domain

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

bzr revid: stefan@therp.nl-20121120121936-8b1wiho0q96ckeqk
This commit is contained in:
Stefan Rijnhart 2012-11-20 13:19:36 +01:00
parent a792b03064
commit d924cec182
1 changed files with 1 additions and 1 deletions

View File

@ -1782,7 +1782,7 @@ class BaseModel(object):
# TODO: find a way to remove this hack, by allow dynamic domains
dom = []
if column._domain and not isinstance(column._domain, basestring):
dom = column._domain
dom = list(column._domain)
dom += eval(node.get('domain', '[]'), {'uid': user, 'time': time})
search_context = dict(context)
if column._context and not isinstance(column._context, basestring):