[IMP] crm, crm_claim, project_issue: improve view of config wizards
[odoo/odoo.git] / addons / crm / res_config.py
1 # -*- coding: utf-8 -*-
2 ##############################################################################
3 #
4 #    OpenERP, Open Source Management Solution
5 #    Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
6 #
7 #    This program is free software: you can redistribute it and/or modify
8 #    it under the terms of the GNU Affero General Public License as
9 #    published by the Free Software Foundation, either version 3 of the
10 #    License, or (at your option) any later version.
11 #
12 #    This program is distributed in the hope that it will be useful,
13 #    but WITHOUT ANY WARRANTY; without even the implied warranty of
14 #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 #    GNU Affero General Public License for more details.
16 #
17 #    You should have received a copy of the GNU Affero General Public License
18 #    along with this program.  If not, see <http://www.gnu.org/licenses/>.
19 #
20 ##############################################################################
21
22 from osv import fields, osv
23
24 class crm_configuration(osv.osv_memory):
25     _name = 'sale.config.settings'
26     _inherit = ['sale.config.settings', 'fetchmail.config.settings']
27
28     _columns = {
29         'module_crm_caldav': fields.boolean("Caldav Synchronization",
30             help="""Use protocol caldav to synchronize meetings with other calendar applications (like Sunbird).
31                 This installs the module crm_caldav."""),
32         'fetchmail_lead': fields.boolean("Create leads from an email account",
33             fetchmail_model='crm.lead', fetchmail_name='Incoming leads',
34             help="""Allows you to configure your incoming mail server, and create leads from incoming emails."""),
35         'lead_server': fields.char('Server', size=256),
36         'lead_port': fields.integer('Port'),
37         'lead_type': fields.selection([
38                 ('pop', 'POP Server'),
39                 ('imap', 'IMAP Server'),
40                 ('local', 'Local Server'),
41             ], 'Type'),
42         'lead_is_ssl': fields.boolean('SSL/TLS',
43             help="Connections are encrypted with SSL/TLS through a dedicated port (default: IMAPS=993, POP=995)"),
44         'lead_user': fields.char('Username', size=256),
45         'lead_password': fields.char('Password', size=1024),
46         'module_import_sugarcrm': fields.boolean("SugarCRM Import",
47             help="""Import SugarCRM leads, opportunities, users, accounts, contacts, employees, meetings, phonecalls, emails, project and project tasks data.
48                 This installs the module import_sugarcrm."""),
49         'module_import_google': fields.boolean("Google Import",
50             help="""Import google contact in partner address and add google calendar events details in Meeting.
51                 This installs the module import_google."""),
52         'module_wiki_sale_faq': fields.boolean("Install a sales FAQ",
53             help="""This provides demo data, thereby creating a Wiki Group and a Wiki Page for Wiki Sale FAQ.
54                 This installs the module wiki_sale_faq."""),
55         'module_base_contact': fields.boolean("Manage a several addresses per customer",
56             help="""Lets you define:
57                     * contacts unrelated to a partner,
58                     * contacts working at several addresses (possibly for different partners),
59                     * contacts with possibly different job functions.
60                 This installs the module base_contact."""),
61         'module_google_map': fields.boolean("Google maps on customer",
62             help="""Locate customers on Google Map.
63                 This installs the module google_map."""),
64     }
65
66     _defaults = {
67         'lead_type': 'pop',
68     }
69
70 # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: