parent
029afec510
commit
4144180e99
6
party.py
6
party.py
|
@ -143,10 +143,10 @@ class Party(metaclass=PoolMeta):
|
||||||
return [('id', '=', -1)]
|
return [('id', '=', -1)]
|
||||||
|
|
||||||
query = party_company.select(party_company.party,
|
query = party_company.select(party_company.party,
|
||||||
where=party_company.company==user.company)
|
where=party_company.company==user.company.id)
|
||||||
if clause[2] == '=':
|
if clause[1] == '=':
|
||||||
return [('id', 'in', query)]
|
return [('id', 'in', query)]
|
||||||
elif clause[2] == '!=':
|
elif clause[1] == '!=':
|
||||||
return [('id', 'not in', query)]
|
return [('id', 'not in', query)]
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue