Browse Source

[FIX] Some fields are not there if the client asks for a search form

pull/1317/merge
Stefan Rijnhart 9 years ago
committed by Holger Brunn
parent
commit
0c4ea79d43
  1. 2
      fetchmail_attach_from_folder/wizard/attach_mail_manually.py

2
fetchmail_attach_from_folder/wizard/attach_mail_manually.py

@ -75,6 +75,8 @@ class AttachMailManually(models.TransientModel):
result = super(AttachMailManually, self).fields_view_get(
view_id=view_id, view_type=view_type, toolbar=toolbar,
submenu=submenu)
if view_type != 'form':
return result
folder_model = self.env['fetchmail.server.folder']
folder_id = self.env.context.get('folder_id')
folder = folder_model.browse([folder_id])

Loading…
Cancel
Save