Fix search_current_company.

041579
This commit is contained in:
Juanjo Garcia 2020-10-26 11:02:56 +01:00
parent 029afec510
commit 4144180e99
1 changed files with 3 additions and 3 deletions

View File

@ -143,10 +143,10 @@ class Party(metaclass=PoolMeta):
return [('id', '=', -1)]
query = party_company.select(party_company.party,
where=party_company.company==user.company)
if clause[2] == '=':
where=party_company.company==user.company.id)
if clause[1] == '=':
return [('id', 'in', query)]
elif clause[2] == '!=':
elif clause[1] == '!=':
return [('id', 'not in', query)]
return []