Fix invalid inversion domain to use None instead of False
issue3681 review4891004
This commit is contained in:
1 parent
f5830961f2
commit
128003b64e
1 file changed
+1
-1
@@ -46,7 +46,7 @@ class Field(object):
|
||||
screen_domain = domain_inversion(record.group.domain4inversion,
|
||||
self.name, EvalEnvironment(record))
|
||||
if isinstance(screen_domain, bool) and not screen_domain:
|
||||
screen_domain = [('id', '=', False)]
|
||||
screen_domain = [('id', '=', None)]
|
||||
elif isinstance(screen_domain, bool) and screen_domain:
|
||||
screen_domain = []
|
||||
attr_domain = record.expr_eval(self.attrs.get('domain', []))
|
||||
|
||||
Reference in new issue
Block a user