[FIX] stock: auto_validate move not set to done when multiple parent move set to...
[odoo/odoo.git] / addons / base_setup / res_config.py
1 # -*- coding: utf-8 -*-
2 ##############################################################################
3 #
4 #    OpenERP, Open Source Business Applications
5 #    Copyright (C) 2004-2012 OpenERP S.A. (<http://openerp.com>).
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 openerp.osv import fields, osv
23
24 class base_config_settings(osv.osv_memory):
25     _name = 'base.config.settings'
26     _inherit = 'res.config.settings'
27     _columns = {
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_share': fields.boolean('Allow documents sharing',
32             help="""Share or embbed any screen of openerp."""),
33         'module_portal': fields.boolean('Activate the customer portal',
34             help="""Give your customers access to their documents."""),
35         'module_portal_anonymous': fields.boolean('Activate the public portal',
36             help="""Enable the public part of openerp, openerp becomes a public website."""),
37         'module_auth_oauth': fields.boolean('Use external authentication providers, sign in with google, facebook, ...'),
38         'module_base_import': fields.boolean("Allow users to import data from CSV files"),
39     }
40
41     def open_company(self, cr, uid, ids, context=None):
42         user = self.pool.get('res.users').browse(cr, uid, uid, context)
43         return {
44             'type': 'ir.actions.act_window',
45             'name': 'Your Company',
46             'view_type': 'form',
47             'view_mode': 'form',
48             'res_model': 'res.company',
49             'res_id': user.company_id.id,
50             'target': 'current',
51         }
52
53 # Preferences wizard for Sales & CRM.
54 # It is defined here because it is inherited independently in modules sale, crm,
55 # plugin_outlook and plugin_thunderbird.
56 class sale_config_settings(osv.osv_memory):
57     _name = 'sale.config.settings'
58     _inherit = 'res.config.settings'
59     _columns = {
60         'module_web_linkedin': fields.boolean('Get contacts automatically from linkedIn',
61             help="""When you create a new contact (person or company), you will be able to load all the data from LinkedIn (photos, address, etc)."""),
62         'module_crm': fields.boolean('CRM'),
63         'module_sale' : fields.boolean('SALE'),
64         'module_plugin_thunderbird': fields.boolean('Enable Thunderbird plug-in',
65             help="""The plugin allows you archive email and its attachments to the selected
66                 OpenERP objects. You can select a partner, or a lead and
67                 attach the selected mail as a .eml file in
68                 the attachment of a selected record. You can create documents for CRM Lead,
69                 Partner from the selected emails.
70                 This installs the module plugin_thunderbird."""),
71         'module_plugin_outlook': fields.boolean('Enable Outlook plug-in',
72             help="""The Outlook plugin allows you to select an object that you would like to add
73                 to your email and its attachments from MS Outlook. You can select a partner,
74                 or a lead object and archive a selected
75                 email into an OpenERP mail message with attachments.
76                 This installs the module plugin_outlook."""),
77     }
78
79 # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: