Browse Source

[FIX] Menu, views and version number

pull/4/head
Maxime Chambreuil 11 years ago
parent
commit
6a9f9bd54a
  1. 7
      base_external_dbsource/__openerp__.py
  2. 7
      import_odbc/__openerp__.py
  3. 48
      import_odbc/import_odbc_view.xml

7
base_external_dbsource/__openerp__.py

@ -21,7 +21,7 @@
{
'name': 'External Database Sources',
'version': '61.3',
'version': '1.3',
'category': 'Tools',
'description': """
This module allows you to define connections to foreign databases using ODBC,
@ -35,6 +35,11 @@ Depending on the database, you need:
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',

7
import_odbc/__openerp__.py

@ -21,7 +21,7 @@
{
'name': 'Import data from SQL and ODBC data sources.',
'version': '61.3',
'version': '1.3',
'category': 'Tools',
'description': """
Import data directly from other databases.
@ -57,6 +57,11 @@ Improvements ideas waiting for a contributor:
* Allow to import many2one fields (currently not supported). Done by adding a second SQL sentence to get child record list?
* Allow "import sets" that can be executed at different time intervals using different scheduler jobs.
* Allow to inactivate/delete OpenERP records when not present in an SQL result set.
Contributors
============
* Maxime Chambreuil <maxime.chambreuil@savoirfairelinux.com>
""",
'author': 'Daniel Reis',
'website': 'http://launchpad.net/addons-tko',

48
import_odbc/import_odbc_view.xml

@ -9,7 +9,7 @@
<field name="model">import.odbc.dbtable</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form>
<form string="Table">
<field name="name" search="1"/>
<field name="exec_order"/>
<field name="model_target"/>
@ -42,7 +42,7 @@
<field name="model">import.odbc.dbtable</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree colors="grey: enabled==False; red:last_error_count&gt;0; blue:last_warn_count&gt;0">
<tree string="Tables" colors="grey: enabled==False; red:last_error_count&gt;0; blue:last_warn_count&gt;0">
<field name="exec_order"/>
<field name="name"/>
<field name="model_target"/>
@ -57,29 +57,33 @@
</field>
</record>
<!-- Tree Search -->
<!-- Tree Search -->
<record id="view_import_dbtable_filter" model="ir.ui.view">
<field name="name">import.odbc.dbtable.filter</field>
<field name="model">import.odbc.dbtable</field>
<field name="type">search</field>
<field name="arch" type="xml">
<search string="Search ODBC Imports">
<field name="name"/>
<field name="dbsource_id"/>
<field name="model_target"/>
<field name="name">import.odbc.dbtable.filter</field>
<field name="model">import.odbc.dbtable</field>
<field name="type">search</field>
<field name="arch" type="xml">
<search string="Search ODBC Imports">
<field name="name"/>
<field name="dbsource_id"/>
<field name="model_target"/>
</search>
</field>
</record>
</field>
</record>
<!--Menu-->
<record model="ir.actions.act_window" id="action_import_dbtable">
<field name="name">Import from SQL</field>
<field name="res_model">import.odbc.dbtable</field>
<field name="view_type">form</field>
</record>
<menuitem name="Import from SQL"
id="menu_import_dbtable"
parent="base.next_id_9"
action="action_import_dbtable"/>
<!--Menu-->
<record model="ir.actions.act_window" id="action_import_dbtable">
<field name="name">Import from SQL</field>
<field name="res_model">import.odbc.dbtable</field>
<field name="view_type">form</field>
</record>
<menuitem name="Import from SQL" id="menu_import_dbtable" parent="base.next_id_15" action="action_import_dbtable"/>
</data>
</data>
</openerp>

Loading…
Cancel
Save