Reviewers: ,


Please review this at http://codereview.tryton.org/61001/

Affected files:
  M company.py


Index: company.py
===================================================================
--- a/company.py
+++ b/company.py
@@ -224,7 +224,7 @@
         return res

def search(self, domain, offset=0, limit=None, order=None, count=False):
-        if Transaction().user == 0:
+        if Transaction().user == 0 and not 'user' in Transaction().context:
             domain = ['AND', domain[:], ('company', '=', False)]
         return super(Property, self).search(domain, offset=offset,
                 limit=limit, order=order, count=count)


--
[email protected] mailing list

Reply via email to