Browse Source

[FIX] don't open a connection if there are no active folders

fixes #247
pull/590/head
Holger Brunn 8 years ago
parent
commit
08597ae2e0
No known key found for this signature in database GPG Key ID: 1C9760FECA3AE18
  1. 2
      fetchmail_attach_from_folder/model/fetchmail_server.py

2
fetchmail_attach_from_folder/model/fetchmail_server.py

@ -60,6 +60,8 @@ class fetchmail_server(models.Model):
for this in self.browse(cr, uid, ids, context):
if this.object_id:
check_original.append(this.id)
if not this.folder_ids.filtered('active'):
continue
context.update(
{

Loading…
Cancel
Save