Property should work also with user in context
(transplanted from ac92e421971e4ea19157fd3a900ce701a2f4df0d)
This commit is contained in:
1 parent
36720ba749
commit
c4e3e0fc8a
1 file changed
+1
-1
+1
-1
@@ -203,7 +203,7 @@ class Property(ModelSQL, ModelView):
|
||||
|
||||
def search(self, cursor, user, domain, offset=0, limit=None, order=None,
|
||||
context=None, count=False):
|
||||
if user == 0:
|
||||
if user == 0 and not 'user' in (context or {}):
|
||||
domain = ['AND', domain[:], ('company', '=', False)]
|
||||
return super(Property, self).search(cursor, user, domain, offset=offset,
|
||||
limit=limit, order=order, context=context, count=count)
|
||||
|
||||
Reference in new issue
Block a user