Browse Source

[MIG][10.0] base_external_dbsource (#578)

pull/566/merge
Henry Zhou 8 years ago
committed by Maxime Chambreuil
parent
commit
33e32285ab
  1. 5
      base_external_dbsource/__manifest__.py
  2. 6
      base_external_dbsource/models/base_external_dbsource.py
  3. 4
      base_external_dbsource/tests/test_create_dbsource.py
  4. 5
      base_external_dbsource/views/base_external_dbsource.xml

5
base_external_dbsource/__manifest__.py

@ -1,9 +1,10 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Copyright <2011> <Daniel Reis, Maxime Chambreuil, Savoir-faire Linux> # Copyright <2011> <Daniel Reis, Maxime Chambreuil, Savoir-faire Linux>
# Copyright <2016> <Henry Zhou MAXodoo>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{ {
'name': 'External Database Sources', 'name': 'External Database Sources',
'version': '9.0.1.0.0',
'version': '10.0.1.0.0',
'category': 'Tools', 'category': 'Tools',
'author': "Daniel Reis,Odoo Community Association (OCA)", 'author': "Daniel Reis,Odoo Community Association (OCA)",
'website': 'https://github.com/OCA/server-tools', 'website': 'https://github.com/OCA/server-tools',
@ -21,5 +22,5 @@
'demo': [ 'demo': [
'demo/base_external_dbsource.xml', 'demo/base_external_dbsource.xml',
], ],
'installable': False,
'installable': True,
} }

6
base_external_dbsource/models/base_external_dbsource.py

@ -22,9 +22,9 @@
import os import os
import logging import logging
import psycopg2 import psycopg2
from openerp import models, fields, api, _
from openerp.exceptions import Warning as UserError
import openerp.tools as tools
from odoo import models, fields, api, _
from odoo.exceptions import Warning as UserError
import odoo.tools as tools
_logger = logging.getLogger(__name__) _logger = logging.getLogger(__name__)
CONNECTORS = [] CONNECTORS = []

4
base_external_dbsource/tests/test_create_dbsource.py

@ -1,7 +1,7 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from openerp.exceptions import Warning as UserError
from openerp.tests import common
from odoo.exceptions import Warning as UserError
from odoo.tests import common
import logging import logging

5
base_external_dbsource/views/base_external_dbsource.xml

@ -31,8 +31,9 @@
</group> </group>
<group col="1"> <group col="1">
<field name="connector"/> <field name="connector"/>
<field name="conn_string" placeholder="Please check the tooltip for connection string examples"/>
<button name="connection_test" string="Test Connection" type="object" icon="gtk-network"/>
<field name="conn_string"
placeholder="Please check the tooltip for connection string examples"/>
<button name="connection_test" string="Test Connection" type="object" icon="fa-refresh"/>
</group> </group>
</sheet> </sheet>
</form> </form>

Loading…
Cancel
Save