[FIX] fix import of email. We have to call super with the server_id and not the ids

This commit is contained in:
Sebastien Beau 2013-12-16 17:16:40 +01:00
parent 469971843b
commit 220881df66

View File

@ -55,7 +55,7 @@ class fetchmail_server(orm.Model):
return ctx
def fetch_mail(self, cr, uid, ids, context=None):
for id in ids:
ctx = self.get_context_for_server(cr, uid, id, context=context)
super(fetchmail_server, self).fetch_mail(cr, uid, ids, context=ctx)
for server_id in ids:
ctx = self.get_context_for_server(cr, uid, server_id, context=context)
super(fetchmail_server, self).fetch_mail(cr, uid, [server_id], context=ctx)
return True