2012-03-28 06:34:59 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
##############################################################################
|
|
|
|
#
|
2012-04-19 13:29:11 +00:00
|
|
|
# OpenERP, Open Source Business Applications
|
|
|
|
# Copyright (C) 2004-2012 OpenERP S.A. (<http://openerp.com>).
|
2012-03-28 06:34:59 +00:00
|
|
|
#
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU Affero General Public License as
|
|
|
|
# published by the Free Software Foundation, either version 3 of the
|
|
|
|
# License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU Affero General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU Affero General Public License
|
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
#
|
|
|
|
##############################################################################
|
|
|
|
|
2012-04-19 13:29:11 +00:00
|
|
|
from osv import osv, fields
|
2012-03-28 06:34:59 +00:00
|
|
|
|
2012-04-20 09:28:34 +00:00
|
|
|
class base_config_settings(osv.osv_memory):
|
2012-04-19 13:29:11 +00:00
|
|
|
_name = 'base.config.settings'
|
2012-03-28 06:34:59 +00:00
|
|
|
_inherit = 'res.config.settings'
|
|
|
|
_columns = {
|
2012-07-31 11:57:21 +00:00
|
|
|
'module_multi_company': fields.boolean('manage multiple companies',
|
2012-04-19 13:29:11 +00:00
|
|
|
help="""Work in multi-company environments, with appropriate security access between companies.
|
|
|
|
This installs the module multi_company."""),
|
2012-08-01 15:47:01 +00:00
|
|
|
'module_share': fields.boolean('allow documents sharing',
|
2012-08-16 23:14:25 +00:00
|
|
|
help="""Share or embbed any screen of openerp."""),
|
|
|
|
'module_portal': fields.boolean('activate customer portal',
|
|
|
|
help="""Give access your customers and suppliers to their documents."""),
|
|
|
|
'module_auth_anonymous': fields.boolean('public website',
|
|
|
|
help="""Enable the public part of openerp, the public part of openerp are browsable like a website."""),
|
|
|
|
'module_auth_oauth': fields.boolean('use external authentication providers, sign in with google, facebook, ...'),
|
2012-03-28 06:34:59 +00:00
|
|
|
}
|
2012-06-22 09:49:40 +00:00
|
|
|
|
2012-05-31 07:37:26 +00:00
|
|
|
def open_company(self, cr, uid, ids, context=None):
|
2012-06-22 09:56:57 +00:00
|
|
|
user = self.pool.get('res.users').browse(cr, uid, uid, context)
|
2012-05-31 07:37:26 +00:00
|
|
|
return {
|
2012-06-22 09:56:57 +00:00
|
|
|
'type': 'ir.actions.act_window',
|
2012-05-31 07:37:26 +00:00
|
|
|
'name': 'Your Company',
|
|
|
|
'view_type': 'form',
|
2012-06-22 10:20:36 +00:00
|
|
|
'view_mode': 'form',
|
2012-05-31 07:37:26 +00:00
|
|
|
'res_model': 'res.company',
|
2012-06-22 09:56:57 +00:00
|
|
|
'res_id': user.company_id.id,
|
2012-06-29 13:41:51 +00:00
|
|
|
'target': 'current',
|
|
|
|
}
|
2012-06-22 09:49:40 +00:00
|
|
|
|
|
|
|
# Preferences wizard for Sales & CRM.
|
|
|
|
# It is defined here because it is inherited independently in modules sale, crm,
|
|
|
|
# plugin_outlook and plugin_thunderbird.
|
|
|
|
class sale_config_settings(osv.osv_memory):
|
|
|
|
_name = 'sale.config.settings'
|
|
|
|
_inherit = 'res.config.settings'
|
|
|
|
_columns = {
|
2012-08-09 12:22:11 +00:00
|
|
|
'module_web_linkedin': fields.boolean('get contacts automatically from LinkedIn',
|
|
|
|
help="""When you create a new contact (person or company), you will be able to load all the data from LinkedIn (photos, address, etc)."""),
|
2012-06-22 09:49:40 +00:00
|
|
|
'module_crm': fields.boolean('CRM'),
|
2012-08-01 16:02:36 +00:00
|
|
|
'module_plugin_thunderbird': fields.boolean('enable Thunderbird plugin',
|
2012-06-22 09:49:40 +00:00
|
|
|
help="""The plugin allows you archive email and its attachments to the selected
|
|
|
|
OpenERP objects. You can select a partner, or a lead and
|
|
|
|
attach the selected mail as a .eml file in
|
|
|
|
the attachment of a selected record. You can create documents for CRM Lead,
|
|
|
|
Partner from the selected emails.
|
|
|
|
This installs the module plugin_thunderbird."""),
|
2012-08-01 15:47:01 +00:00
|
|
|
'module_plugin_outlook': fields.boolean('enable Outlook plugin',
|
2012-06-22 09:49:40 +00:00
|
|
|
help="""The Outlook plugin allows you to select an object that you would like to add
|
|
|
|
to your email and its attachments from MS Outlook. You can select a partner,
|
|
|
|
or a lead object and archive a selected
|
|
|
|
email into an OpenERP mail message with attachments.
|
|
|
|
This installs the module plugin_outlook."""),
|
|
|
|
}
|
|
|
|
|
2012-04-03 12:21:56 +00:00
|
|
|
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|