Browse Source

Merge pull request #590 from hbrunn/8.0-fetchmail_attach_from_folder-no_folders

[FIX] don't open a connection if there are no active folders
pull/630/head
Pedro M. Baeza 8 years ago
committed by GitHub
parent
commit
a9beedcc07
  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