From d924cec18262b51f040975683867ad5e3ea14b80 Mon Sep 17 00:00:00 2001 From: Stefan Rijnhart Date: Tue, 20 Nov 2012 13:19:36 +0100 Subject: [PATCH] [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 --- openerp/osv/orm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openerp/osv/orm.py b/openerp/osv/orm.py index 1ab91500650..f379399e2ca 100644 --- a/openerp/osv/orm.py +++ b/openerp/osv/orm.py @@ -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):