-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathimp_data.xml
More file actions
172 lines (154 loc) · 6.62 KB
/
imp_data.xml
File metadata and controls
172 lines (154 loc) · 6.62 KB
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record model="ir.actions.act_window" id="action_imp_show_instances">
<field name="name">... import</field>
<field name="type">ir.actions.act_window</field>
<field name="domain">[]</field>
<field name="context">{}</field>
<field name="res_model">imp.imp</field>
<field name="view_type">form</field>
</record>
<record model="ir.ui.view" id="view_imp_form">
<field name="name">imp.imp.form</field>
<field name="model">imp.imp</field>
<field name="type">form</field>
<field name="priority" eval="20"/>
<field name="arch" type="xml">
<form string="Import" version="7.0">
<notebook colspan="4">
<page string="General">
<group colspan="4" col="12">
<group colspan="5">
<label string="Supplier"/>
<newline/>
<field name="name" nolabel="1" />
<newline/>
<label for="model_name" string="Type of info"/>
<newline/>
<field name="model_name" nolabel="1" />
</group>
<!-- <group colspan="5">
<label string="Categoty"/>
<newline/>
<field name="category_id" nolabel="1" />
</group> -->
<group colspan="2">
<label string="Type of File"/>
<newline/>
<field name="imp_type" nolabel="1"/>
</group>
<group colspan="2">
<label string="Location of File"/>
<newline/>
<field name="imp_file" nolabel="1"/>
</group>
<group colspan="2">
<label string="Numbers of sheet and line"/>
<newline/>
<field name="sheet_num" nolabel="1"/>
<newline/>
<field name="line_start" nolabel="1"/>
</group>
<group colspan="2">
<label string="Etalon catalog"/>
<newline/>
<field name="etalon_catalog" nolabel="1"/>
</group>
<newline/>
<notebook colspan="8">
<page string="File ">
<group col="10">
<field name="url" nolabel="1" colspan="4" attrs="{'invisible':[('imp_file','!=','remote')], 'required':[('imp_file','=','remote')]}"/>
<field name="loc" nolabel="1" colspan="4" attrs="{'invisible':[('imp_file','!=','local')], 'required':[('imp_file','=','local')]}"/>
</group>
</page>
</notebook>
</group>
<newline/>
<notebook colspan="4">
<page string="Import">
<group colspan="4" col="16">
<group colspan="1">
<label string="Force import"/>
<newline/>
<field name="force_import" nolabel="1"/>
</group>
<!-- <group colspan="1">
<button name="get_prod_fields" string="Update product fields" colspan="2" type="object" icon="gtk-ok" />
</group>
-->
<group colspan="2">
<button name="imp_import" string="Import" colspan="2" type="object" icon="gtk-ok" />
</group>
</group>
<newline/>
<notebook colspan="4">
<page string="Information">
<field name="description" nolabel="1"/>
</page>
</notebook>
</page>
</notebook>
<newline/>
<notebook colspan="4">
<page string="Notes">
<field name="notes" nolabel="1"/>
<newline/>
<!-- <field name="unconect_count" colspan="2"/> -->
<button name="show_unconnected" string="Browse" colspan="2" type="object" icon="gtk-ok" />
</page>
</notebook>
</page>
<page string="Product fields">
<group colspan="4" col="24">
<field name="import_order" colspan="20" />
<button name="set_import_order" string="Set chosen order" colspan="2" type="object" icon="gtk-ok" />
<newline/>
<field name="hide_unused" colspan="2" />
<newline/>
<separator string="Product fields wich you can export" colspan="24" />
</group>
</page>
</notebook>
</form>
</field>
</record>
<record model="ir.ui.view" id="view_imp_tree">
<field name="name">imp.imp.tree</field>
<field name="model">imp.imp</field>
<field name="type">tree</field>
<field name="priority" eval="10"/>
<field name="arch" type="xml">
<tree string="Import tree view">
<!-- <tree string="Import tree view" colors="blue:state=='approved';red:state=='draft'"> -->
<field name="name" />
<field name="imp_type" />
<!-- <field name="etalon_catalog" /> -->
<field name="last_import" />
<field name="unconect_count" />
<button name="show_unconnected" string="Browse" colspan="2" type="object" icon="gtk-go-forward" />
</tree>
</field>
</record>
<!-- <record id="view_imp_tree1" model="ir.actions.act_window.view">
<field eval="10" name="sequence"/>
<field name="view_mode">tree</field>
<field name="view_id" ref="view_imp_tree"/>
<field name="act_window_id" ref="action_imp_show_instances"/>
</record>
<record id="view_imp_tree2" model="ir.actions.act_window.view">
<field eval="20" name="sequence"/>
<field name="view_mode">form</field>
<field name="view_id" ref="view_imp_form"/>
<field name="act_window_id" ref="action_imp_show_instances"/>
</record> -->
<menuitem id="imp_main_menu" name="Easy Import" icon="STOCK_MEDIA_PLAY" sequence="50"/>
<menuitem id="imp_instances" parent="imp_main_menu" name="Instance ..." />
<menuitem
action="action_imp_show_instances"
id="imp_instances_menu"
parent="imp_instances"
/>
</data>
</openerp>