diff --git a/erpnext/support/doctype/support_ticket/__init__.py b/erpnext/support/doctype/support_ticket/__init__.py index 8d80f0a78b..ca27a61f9f 100644 --- a/erpnext/support/doctype/support_ticket/__init__.py +++ b/erpnext/support/doctype/support_ticket/__init__.py @@ -29,7 +29,7 @@ class SupportMailbox(POP3Mailbox): # extract email settings self.email_settings = Document('Email Settings','Email Settings') - if not self.email_settings.get('sync_support_mails'): return + if not self.email_settings.fields.get('sync_support_mails'): return s = Document('Support Email Settings') s.use_ssl = self.email_settings.support_use_ssl