diff --git a/addons/crm/res_config.py b/addons/crm/res_config.py index b4a9e368d4c..962eccece83 100644 --- a/addons/crm/res_config.py +++ b/addons/crm/res_config.py @@ -26,23 +26,12 @@ class crm_configuration(osv.osv_memory): _inherit = ['sale.config.settings', 'fetchmail.config.settings'] _columns = { + 'fetchmail_lead': fields.boolean("Create Leads from Incoming Mails", readonly=True, + fetchmail_model='crm.lead', fetchmail_name='Incoming Leads', + help="""Allows you to configure your incoming mail server, and create leads from incoming emails."""), 'module_crm_caldav': fields.boolean("Caldav Synchronization", help="""Use protocol caldav to synchronize meetings with other calendar applications (like Sunbird). This installs the module crm_caldav."""), - 'fetchmail_lead': fields.boolean("Create leads from an email account", - fetchmail_model='crm.lead', fetchmail_name='Incoming leads', - help="""Allows you to configure your incoming mail server, and create leads from incoming emails."""), - 'lead_server': fields.char('Server', size=256), - 'lead_port': fields.integer('Port'), - 'lead_type': fields.selection([ - ('pop', 'POP Server'), - ('imap', 'IMAP Server'), - ('local', 'Local Server'), - ], 'Type'), - 'lead_is_ssl': fields.boolean('SSL/TLS', - help="Connections are encrypted with SSL/TLS through a dedicated port (default: IMAPS=993, POP=995)"), - 'lead_user': fields.char('Username', size=256), - 'lead_password': fields.char('Password', size=1024), 'module_import_sugarcrm': fields.boolean("SugarCRM Import", help="""Import SugarCRM leads, opportunities, users, accounts, contacts, employees, meetings, phonecalls, emails, project and project tasks data. This installs the module import_sugarcrm."""), @@ -57,8 +46,4 @@ class crm_configuration(osv.osv_memory): This installs the module google_map."""), } - _defaults = { - 'lead_type': 'pop', - } - # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/crm/res_config_view.xml b/addons/crm/res_config_view.xml index 9184eff5153..12bd97ff1ff 100644 --- a/addons/crm/res_config_view.xml +++ b/addons/crm/res_config_view.xml @@ -10,15 +10,9 @@ - - - - - - - + +