[FIX] expression: a valid leaf must have a non empty string as first element or be the magic TRUE_LEAF/FALSE_LEAF
lp bug: https://launchpad.net/bugs/1197323 fixed bzr revid: chs@openerp.com-20130719091903-28ez0txxyjh6qiii
This commit is contained in:
parent
1e9789baf8
commit
03381c761d
|
@ -399,7 +399,9 @@ def is_leaf(element, internal=False):
|
|||
INTERNAL_OPS += ('inselect',)
|
||||
return (isinstance(element, tuple) or isinstance(element, list)) \
|
||||
and len(element) == 3 \
|
||||
and element[1] in INTERNAL_OPS
|
||||
and element[1] in INTERNAL_OPS \
|
||||
and ((isinstance(element[0], basestring) and element[0])
|
||||
or element in (TRUE_LEAF, FALSE_LEAF))
|
||||
|
||||
|
||||
# --------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue