Bugfix for creating new fields
bzr revid: fp@tinyerp.com-340749ce397ab35660883c8acada977b51d2007d
This commit is contained in:
parent
5c2ea65a59
commit
72b54570da
|
@ -1956,7 +1956,7 @@ class orm(object):
|
|||
joins=[]
|
||||
while i<len(args):
|
||||
table=self
|
||||
assert args[i][1] in ('like','ilike','=like','not in','inselect','child_of','in','=','<>','<','>','>=','<='), 'Error ! Bad clause operand "%s".' % (args[i][1],)
|
||||
assert args[i][1] in ('like','!=','ilike','=like','not in','inselect','child_of','in','=','<>','<','>','>=','<='), 'Error ! Bad clause operand "%s".' % (args[i][1],)
|
||||
if args[i][1] == 'inselect':
|
||||
raise except_orm('ValidateError',
|
||||
'The clause \'inselect\' can not be used outside the orm!')
|
||||
|
|
Loading…
Reference in New Issue