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
|
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="view_currency_table_tree" model="ir.ui.view">
<field name="name">res.currency.table.tree</field>
<field name="model">res.currency.table</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="Currency Tables">
<field name="name"/>
<field name="code"/>
<field name="state"/>
</tree>
</field>
</record>
<record id="view_currency_table_form" model="ir.ui.view">
<field name="name">res.currency.table.form</field>
<field name="model">res.currency.table</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Currency Table">
<field name="name" attrs="{'readonly':[('state','=','closed')]}"/>
<field name="code" attrs="{'readonly':[('state','=','closed')]}"/>
<field colspan="4" name="currency_ids" nolabel="1" attrs="{'readonly':[('state','=','closed')]}">
<tree string="Currencies" colors="red:rate==0.0">
<field name="name"/>
<field name="currency_name"/>
<field name="rate"/>
<field name="date"/>
</tree>
<form string="Currency">
<group col="6" colspan="6">
<field name="name" select="1"/>
<field name="rate"/>
<field name="currency_name"/>
<field name="symbol"/>
</group>
<group col="2" colspan="2">
<separator string="Price Accuracy" colspan="2"/>
<field name="rounding"/>
<field name="accuracy"/>
</group>
<field colspan="4" mode="tree,form" name="rate_ids" nolabel="1" attrs="{'readonly':[('base','=',True)]}">
<form string="Rates">
<field name="name"/>
<field name="rate"/>
</form>
<tree string="Rates">
<field name="name"/>
<field name="rate"/>
</tree>
</field>
</form>
</field>
<field name="state" readonly="1"/>
<group col="4" colspan="2">
<button string="Validate" name="valid" states="draft" type="workflow" icon="gtk-ok"/>
<button string="Close" name="closed" states="valid" type="workflow" icon="gtk-jump-to" />
</group>
</form>
</field>
</record>
<record id="action_currency_table_form" model="ir.actions.act_window">
<field name="name">Currency Tables</field>
<field name="res_model">res.currency.table</field>
<field name="view_id" ref="view_currency_table_tree"/>
</record>
<menuitem action="action_currency_table_form" id="menu_action_currency_table_form" parent="account.menu_finance_currency_mgmt" sequence="2"/>
<record id="import_main_currencies_view" model="ir.ui.view">
<field name="name">Import Currencies</field>
<field name="model">import.currencies</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Import Currencies">
<field name="rate_date"/>
<field name="import_file"/>
<button icon="gtk-cancel" special="cancel" string="Cancel"/>
<button icon="terp-camera_test" string="Import" name="import_rates" type="object" default_focus="1"/>
</form>
</field>
</record>
<record id="action_import_main_currencies" model="ir.actions.act_window">
<field name="name">Import Currencies</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">import.currencies</field>
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="view_id" ref="import_main_currencies_view"/>
<field name="target">new</field>
</record>
<menuitem parent="account.menu_finance_currency_mgmt"
action="action_import_main_currencies"
id="menu_action_import_main_currencies" sequence="1"/>
<record id="import_table_currencies_view" model="ir.ui.view">
<field name="name">Import Currencies</field>
<field name="model">import.table.currencies</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Import Currencies">
<field name="rate_date"/>
<field name="import_file"/>
<button icon="gtk-cancel" special="cancel" string="Cancel"/>
<button icon="terp-camera_test" string="Import" name="import_table_rates" type="object" default_focus="1"/>
</form>
</field>
</record>
<record id="action_import_table_currencies" model="ir.actions.act_window">
<field name="name">Import Currencies</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">import.table.currencies</field>
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="view_id" ref="import_table_currencies_view"/>
<field name="target">new</field>
</record>
<record model="ir.values" id="import_table_currencies_values">
<field name="object" eval="1" />
<field name="name">Import Currencies</field>
<field name="key2">client_action_multi</field>
<field name="value" eval="'ir.actions.act_window,' + str(ref('action_import_table_currencies'))" />
<field name="key">action</field>
<field name="model">res.currency.table</field>
</record>
<record id="warning_import_currency_view" model="ir.ui.view">
<field name="name">Undefined FX Rates</field>
<field name="model">warning.import.currencies</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Undefined FX Rates">
<label string="FX rates for this period have not been defined for the following currencies:" align="0.0" colspan="3"/>
<field name="currency_list" colspan="4" nolabel="1" readonly="1"/>
<separator colspan="4"/>
<group colspan="4" col="6">
<button name="button_ok" string="OK" type="object" icon="gtk-ok"/>
</group>
</form>
</field>
</record>
<record id="confirm_import_currency_view" model="ir.ui.view">
<field name="name">Undefined FX Rates</field>
<field name="model">confirm.import.currencies</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Currencies Imported">
<label string="The FX rates have been correctly uploaded." align="0.0" colspan="3"/>
<separator colspan="4"/>
<button name="button_ok" string="OK" type="object" icon="gtk-ok"/>
</form>
</field>
</record>
</data>
</openerp>
|