diff --git a/addons/crm/res_config.py b/addons/crm/res_config.py index 4a647dd797f..c44bc2198ae 100644 --- a/addons/crm/res_config.py +++ b/addons/crm/res_config.py @@ -7,7 +7,7 @@ from openerp.osv import fields, osv class crm_configuration(osv.TransientModel): _name = 'sale.config.settings' - _inherit = ['sale.config.settings', 'fetchmail.config.settings'] + _inherit = ['sale.config.settings'] _columns = { 'generate_sales_team_alias': fields.boolean( @@ -18,7 +18,7 @@ class crm_configuration(osv.TransientModel): 'group_use_lead': fields.selection([ (0, "Each mail sent to the alias creates a new opportunity"), (1, "Use leads if you need a qualification step before creating an opportunity or a customer") - ], "Leads", + ], "Leads", implied_group='crm.group_use_lead'), 'module_crm_voip': fields.boolean("VoIP integration", help="Integration with Asterisk"), diff --git a/addons/fetchmail/models/__init__.py b/addons/fetchmail/models/__init__.py index 9b6348f2c01..2d0d6d41f78 100644 --- a/addons/fetchmail/models/__init__.py +++ b/addons/fetchmail/models/__init__.py @@ -2,5 +2,4 @@ # Part of Odoo. See LICENSE file for full copyright and licensing details. import fetchmail -import res_config import mail_mail diff --git a/addons/fetchmail/models/res_config.py b/addons/fetchmail/models/res_config.py deleted file mode 100644 index c58e2ca2947..00000000000 --- a/addons/fetchmail/models/res_config.py +++ /dev/null @@ -1,87 +0,0 @@ -# -*- coding: utf-8 -*- -# Part of Odoo. See LICENSE file for full copyright and licensing details. - -from odoo import api, fields, models - - -class FetchmailConfigSettings(models.TransientModel): - """ This wizard can be inherited in conjunction with 'res.config.settings', in order to - define fields that configure a fetchmail server. - - It relies on the following convention on the object:: - - class MyConfigSettings(models.TransientModel): - _name = 'my.settings' - _inherit = ['res.config.settings', 'fetchmail.config.settings'] - - fetchmail_stuff = fields.Boolean(..., fetchmail_model='my.stuff', fetchmail_name='Incoming Stuff'), - - def configure_fetchmail_stuff(self, cr, uid, ids, context=None): - return self.configure_fetchmail(cr, uid, 'fetchmail_stuff', context) - - and in the form view:: - - -