1 # -*- coding: utf-8 -*-
2 ##############################################################################
4 # OpenERP, Open Source Business Applications
5 # Copyright (C) 2004-2012 OpenERP S.A. (<http://openerp.com>).
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.
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.
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/>.
20 ##############################################################################
22 from osv import osv, fields
24 class base_config_settings(osv.osv_memory):
25 _name = 'base.config.settings'
26 _inherit = 'res.config.settings'
28 'module_multi_company': fields.boolean('manage multiple companies',
29 help="""Work in multi-company environments, with appropriate security access between companies.
30 This installs the module multi_company."""),
31 'module_portal': fields.boolean('activate customer portal',
32 help="""The portal will give access to a series of documents for your customers; his quotations, his invoices, his projects, etc."""),
33 'module_share': fields.boolean('allow documents sharing',
34 help="""As an example, you will be able to share a project or some tasks to your customers, or quotes/sales to several persons at your customer company, or your agenda availabilities to your contacts."""),
37 def open_company(self, cr, uid, ids, context=None):
38 user = self.pool.get('res.users').browse(cr, uid, uid, context)
40 'type': 'ir.actions.act_window',
41 'name': 'Your Company',
44 'res_model': 'res.company',
45 'res_id': user.company_id.id,
49 # Preferences wizard for Sales & CRM.
50 # It is defined here because it is inherited independently in modules sale, crm,
51 # plugin_outlook and plugin_thunderbird.
52 class sale_config_settings(osv.osv_memory):
53 _name = 'sale.config.settings'
54 _inherit = 'res.config.settings'
56 'module_crm': fields.boolean('CRM'),
57 'module_plugin_thunderbird': fields.boolean('enable Thunderbird plugin',
58 help="""The plugin allows you archive email and its attachments to the selected
59 OpenERP objects. You can select a partner, or a lead and
60 attach the selected mail as a .eml file in
61 the attachment of a selected record. You can create documents for CRM Lead,
62 Partner from the selected emails.
63 This installs the module plugin_thunderbird."""),
64 'module_plugin_outlook': fields.boolean('enable Outlook plugin',
65 help="""The Outlook plugin allows you to select an object that you would like to add
66 to your email and its attachments from MS Outlook. You can select a partner,
67 or a lead object and archive a selected
68 email into an OpenERP mail message with attachments.
69 This installs the module plugin_outlook."""),
72 # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: