mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-24 17:38:42 -06:00
[FIX] fix import of email. We have to call super with the server_id and not the ids
This commit is contained in:
parent
469971843b
commit
220881df66
@ -55,7 +55,7 @@ class fetchmail_server(orm.Model):
|
|||||||
return ctx
|
return ctx
|
||||||
|
|
||||||
def fetch_mail(self, cr, uid, ids, context=None):
|
def fetch_mail(self, cr, uid, ids, context=None):
|
||||||
for id in ids:
|
for server_id in ids:
|
||||||
ctx = self.get_context_for_server(cr, uid, id, context=context)
|
ctx = self.get_context_for_server(cr, uid, server_id, context=context)
|
||||||
super(fetchmail_server, self).fetch_mail(cr, uid, ids, context=ctx)
|
super(fetchmail_server, self).fetch_mail(cr, uid, [server_id], context=ctx)
|
||||||
return True
|
return True
|
||||||
|
Loading…
Reference in New Issue
Block a user