diff --git a/file_document.py b/file_document.py index 26e4d17b..4b159701 100644 --- a/file_document.py +++ b/file_document.py @@ -70,6 +70,7 @@ class file_document(orm.Model): for att in msg['attachments']: if condition.file_extension in att[0]: vals = { + 'file_type': condition.server_id.file_type, 'name': msg['subject'], 'direction': 'input', 'date': msg['date'],