[MIG] base external dbsource

* Migration of base_external_dbsource to odoo 9.0

* Fixing test error

* Moving test from yaml to python

* Fixing pylint error in test class

* Placeholder added to connection string text zone

* improving test coverage
This commit is contained in:
Gervais Naoussi
2016-09-08 09:24:27 -04:00
committed by Pedro M. Baeza
parent faadee69aa
commit 7d935f2e94
11 changed files with 253 additions and 147 deletions

View File

@@ -1,48 +1,13 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Daniel Reis, 2011
# Additional contributions by Maxime Chambreuil, Savoir-faire Linux
#
# 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/>.
#
##############################################################################
# Copyright <2011> <Daniel Reis, Maxime Chambreuil, Savoir-faire Linux>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
'name': 'External Database Sources',
'version': '8.0.1.3.0',
'version': '9.0.1.0.0',
'category': 'Tools',
'description': """
This module allows you to define connections to foreign databases using ODBC,
Oracle Client or SQLAlchemy.
Database sources can be configured in Settings > Configuration -> Data sources.
Depending on the database, you need:
* to install unixodbc and python-pyodbc packages to use ODBC connections.
* to install FreeTDS driver (tdsodbc package) and configure it through ODBC to
connect to Microsoft SQL Server.
* to install and configure Oracle Instant Client and cx_Oracle python library
to connect to Oracle.
Contributors
============
* Maxime Chambreuil <maxime.chambreuil@savoirfairelinux.com>
""",
'author': 'Daniel Reis',
'website': 'http://launchpad.net/addons-tko',
'author': "Daniel Reis,Odoo Community Association (OCA)",
'website': 'https://github.com/OCA/server-tools',
'license': 'AGPL-3',
'images': [
'images/screenshot01.png',
],
@@ -50,14 +15,11 @@ Contributors
'base',
],
'data': [
'base_external_dbsource_view.xml',
'views/base_external_dbsource.xml',
'security/ir.model.access.csv',
],
'demo': [
'base_external_dbsource_demo.xml',
],
'test': [
'test/dbsource_connect.yml',
'demo/base_external_dbsource.xml',
],
'installable': True,
}