Browse Source

Fix faulty default context

pull/68/head
Nicolas Bessi 10 years ago
parent
commit
1934d2a86d
  1. 4
      mail_environment/env_mail.py

4
mail_environment/env_mail.py

@ -140,7 +140,9 @@ class FetchmailServer(osv.osv):
res[fetchmail.id] = config_vals
return res
def _type_search(self, cr, uid, obj, name, args, context={}):
def _type_search(self, cr, uid, obj, name, args, context=None):
if context is None:
context = self.pool['res.users'].context_get(cr, uid)
result_ids = []
# read all incomming servers values
all_ids = self.search(cr, uid, [], context=context)

Loading…
Cancel
Save