Browse Source
[FIX] don't open a connection if there are no active folders
fixes #247
pull/590/head
Holger Brunn
8 years ago
No known key found for this signature in database
GPG Key ID: 1C9760FECA3AE18
1 changed files with
2 additions and
0 deletions
-
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): |
|
|
for this in self.browse(cr, uid, ids, context): |
|
|
if this.object_id: |
|
|
if this.object_id: |
|
|
check_original.append(this.id) |
|
|
check_original.append(this.id) |
|
|
|
|
|
if not this.folder_ids.filtered('active'): |
|
|
|
|
|
continue |
|
|
|
|
|
|
|
|
context.update( |
|
|
context.update( |
|
|
{ |
|
|
{ |
|
|