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('Multi Company',
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 Sharing Resources to External Users',
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',
43 'view_mode': 'form,tree',
44 'res_model': 'res.company',
45 'res_id': user.company_id.id,
48 # Preferences wizard for Sales & CRM.
49 # It is defined here because it is inherited independently in modules sale, crm,
50 # plugin_outlook and plugin_thunderbird.
51 class sale_config_settings(osv.osv_memory):
52 _name = 'sale.config.settings'
53 _inherit = 'res.config.settings'
55 'module_crm': fields.boolean('CRM'),
56 'module_plugin_thunderbird': fields.boolean('Thunderbird Plugin',
57 help="""The plugin allows you archive email and its attachments to the selected
58 OpenERP objects. You can select a partner, or a lead and
59 attach the selected mail as a .eml file in
60 the attachment of a selected record. You can create documents for CRM Lead,
61 Partner from the selected emails.
62 This installs the module plugin_thunderbird."""),
63 'module_plugin_outlook': fields.boolean('Outlook Plugin',
64 help="""The Outlook plugin allows you to select an object that you would like to add
65 to your email and its attachments from MS Outlook. You can select a partner,
66 or a lead object and archive a selected
67 email into an OpenERP mail message with attachments.
68 This installs the module plugin_outlook."""),
71 # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: