mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-23 04:22:04 -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
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user