forked from OCA/server-tools
-
Notifications
You must be signed in to change notification settings - Fork 1
/
import_odbc_view.xml
101 lines (90 loc) · 3.83 KB
/
import_odbc_view.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<?xml version="1.0"?>
<openerp>
<data>
<!-- Table form -->
<record model="ir.ui.view" id="view_import_dbtable_form">
<field name="name">import.odbc.dbtable.form</field>
<field name="model">import.odbc.dbtable</field>
<field name="arch" type="xml">
<form string="Table">
<group>
<group>
<field name="name" search="1"/>
<field name="model_target"/>
<field name="noupdate"/>
<field name="ignore_rel_errors"/>
<field name="last_sync"/>
<button name="import_run" string="Run Import" type="object" icon="gtk-execute"/>
</group>
<group>
<field name="exec_order"/>
<field name="dbsource_id" search="1"/>
<field name="enabled"/>
<field name="raise_import_errors"/>
<button name="import_schedule" string="Schedule Import" type="object" icon="gtk-paste"/>
</group>
</group>
<group>
<field name="sql_source" colspan="4"/>
</group>
<separator string="Last execution" colspan="4"/>
<group>
<group>
<field name="last_record_count"/>
<field name="last_warn_count"/>
<field name="last_error_count"/>
</group>
<group>
<field name="start_run"/>
<field name="last_run"/>
<field name="last_log" colspan="4"/>
</group>
</group>
</form>
</field>
</record>
<!-- Table Tree -->
<record id="view_import_dbtable_tree" model="ir.ui.view">
<field name="name">import.odbc.dbtable.tree</field>
<field name="model">import.odbc.dbtable</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="Tables" colors="grey: enabled==False; red:last_error_count>0; blue:last_warn_count>0">
<field name="exec_order"/>
<field name="name"/>
<field name="model_target"/>
<field name="dbsource_id"/>
<field name="enabled"/>
<field name="last_run"/>
<field name="last_sync"/>
<field name="last_record_count"/>
<field name="last_error_count"/>
<field name="last_warn_count"/>
</tree>
</field>
</record>
<!-- 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"/>
</search>
</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"/>
</data>
</openerp>