[IMP]:put label before field
[odoo/odoo.git] / addons / account / res_config_view.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data>
4
5         <record id="open_account_charts_modules" model="ir.actions.act_window">
6             <field name="name">Chart Templates</field>
7             <field name="res_model">ir.module.module</field>
8             <field name="view_mode">kanban,tree,form</field>
9             <field name="context" eval="{'search_default_category_id': ref('base.module_category_localization_account_charts')}"/>
10             <field name="search_view_id" ref="base.view_module_filter"/>
11         </record>
12
13         <record id="view_account_config_settings" model="ir.ui.view">
14             <field name="name">account settings</field>
15             <field name="model">account.config.settings</field>
16             <field name="type">form</field>
17             <field name="arch" type="xml">
18                 <form string="Configure Accounting" version="7.0">
19                     <header>
20                         <button string="Apply" type="object" name="execute" class="oe_highlight"/>
21                         or
22                         <button string="Cancel" type="object" name="cancel" class="oe_link"/>
23                     </header>
24                     <field name="has_default_company" invisible="1" />
25                     <field name="has_chart_of_accounts" invisible="1"/>
26                     <field name="complete_tax_set" invisible="1"/>
27                     <field name="has_fiscal_year" invisible="1"/>
28                     <separator string="Chart of Accounts" groups="base.group_multi_company"/>
29                     <group groups="base.group_multi_company">
30                         <label for="id" string="Chart of Accounts"/>
31                         <div>
32                             <div attrs="{'invisible': [('has_default_company', '=', True)]}">
33                                 <label for="company_id" string="Select Company"/>
34                                 <field name="company_id"
35                                     widget="selection"
36                                     on_change="onchange_company_id(company_id)"
37                                     class="oe_inline"/>
38                             </div>
39                             <div>
40                                 <field name="expects_chart_of_accounts" class="oe_inline"/>
41                                 <label for="expects_chart_of_accounts"/>
42                             </div>
43                         </div>
44                     </group>
45                     <group attrs="{'invisible': ['|', ('expects_chart_of_accounts','=',False), ('has_chart_of_accounts','=',True)]}">
46                         <label for="id" string="Select Chart"/>
47                         <div>
48                             <div>
49                                 <field name="chart_template_id"
50                                     widget="selection"
51                                     domain="[('visible','=', True)]"
52                                     on_change="onchange_chart_template_id(chart_template_id)"
53                                     class="oe_inline"/>
54                                 <button string="Install More Chart Templates"
55                                     icon="gtk-go-forward"
56                                     name="%(open_account_charts_modules)d"
57                                     type="action"
58                                     class="oe_link"/>
59                             </div>
60                             <div groups="account.group_account_user">
61                                 <label for="code_digits"/>
62                                 <field name="code_digits" class="oe_inline"/>
63                             </div>
64                             <div attrs="{'invisible': ['|', ('chart_template_id','=',False), ('complete_tax_set','=',False)]}">
65                                 <label for="sale_tax"/>
66                                 <field name="sale_tax"
67                                     domain="[('chart_template_id', '=', chart_template_id),('parent_id','=',False),('type_tax_use','in',('sale','all'))]"
68                                     class="oe_inline"/>
69                             </div>
70                             <div attrs="{'invisible': ['|', ('chart_template_id','=',False), ('complete_tax_set','=',False)]}">
71                                 <label for="purchase_tax"/>
72                                 <field name="purchase_tax" 
73                                     domain="[('chart_template_id', '=', chart_template_id),('parent_id','=',False),('type_tax_use','in',('purchase', 'all'))]"
74                                     class="oe_inline"/> 
75                             </div>
76                             <div attrs="{'invisible': ['|', ('chart_template_id','=',False), ('complete_tax_set','=',True)]}">
77                                 <label for="sale_tax_rate"/>
78                                 <field name="sale_tax_rate" on_change="onchange_tax_rate(sale_tax_rate)"/> 
79                             </div>
80                             <div attrs="{'invisible': ['|', ('chart_template_id','=',False), ('complete_tax_set','=',True)]}">
81                                 <label for="purchase_tax_rate"/>
82                                 <field name="purchase_tax_rate" />
83                             </div>
84                         </div>
85                     </group>
86                     <separator string="No Fiscal Year Defined for This Company" attrs="{'invisible': ['|', ('expects_chart_of_accounts','=',False), ('has_fiscal_year','=',True)]}"/>
87                     <group attrs="{'invisible': ['|', ('expects_chart_of_accounts','=',False), ('has_fiscal_year','=',True)]}">
88                         <label for="id" string="Fiscal Year"/>
89                         <div>
90                             <div>
91                                 <label for="date_start" string="Date Range"/>
92                                 <field name="date_start"
93                                     on_change="onchange_start_date(date_start)"
94                                     class="oe_inline"/> -
95                                 <field name="date_stop" class="oe_inline"/>
96                             </div>
97                             <div>
98                                 <label for="period"/>
99                                 <field name="period" class="oe_inline"/>
100                             </div>
101                         </div>
102                     </group>
103                     <separator string="Accounting Configuration"/>
104                     <group>
105                         <label for="id" string="Configuration"/>
106                         <div name="account_config">
107                             <div attrs="{'invisible': [('has_chart_of_accounts','=',False)]}">
108                                 <label for="default_sale_tax"/>
109                                 <field name="default_sale_tax"
110                                     domain="[('type_tax_use','=','sale'), ('company_id','=',company_id)]"
111                                     class="oe_inline"/>
112                             </div>
113                             <div>
114                                 <field name="module_account_accountant" class="oe_inline"/>
115                                 <label for="module_account_accountant"/>
116                             </div>
117                             <div>
118                                 <label for="currency_id"/>
119                                 <field name="currency_id" class="oe_inline"/>
120                             </div>
121                             <div>
122                                 <label for="decimal_precision"/>
123                                 <field name="decimal_precision" class="oe_inline"/>
124                             </div>
125                             <div attrs="{'invisible': [('has_chart_of_accounts','=',False)]}">
126                                 <label for="default_purchase_tax"/>
127                                 <field name="default_purchase_tax"
128                                     domain="[('type_tax_use','=','purchase'), ('company_id','=',company_id)]"
129                                     class="oe_inline"/>
130                             </div>
131                             <div>
132                                 <label for="tax_calculation_rounding_method"/>
133                                 <field name="tax_calculation_rounding_method" class="oe_inline"/>
134                             </div>
135                             <div>
136                                 <field name="module_account_asset" class="oe_inline"/>
137                                 <label for="module_account_asset"/>
138                             </div>
139                             <div>
140                                 <field name="module_account_budget" class="oe_inline"/>
141                                 <label for="module_account_budget"/>
142                             </div>
143                         </div>
144                     </group>
145                     <separator string="Invoices"/>
146                     <group>
147                         <label for="id" string="Customer Settings"/>
148                         <div>
149                             <div>
150                                 <label for="sale_sequence_next"/>
151                                 <field name="sale_sequence_prefix"
152                                     class="oe_inline" 
153                                     help='If you put "%%(year)s" in the prefix, it will be replaced by the current year.'/>
154                                 <field name="sale_sequence_next"
155                                     class="oe_inline"
156                                     attrs="{'readonly': [('sale_journal_id','=',False)]}"/>
157                             </div>
158                             <div>
159                                 <label for="sale_refund_sequence_next"/>
160                                 <field name="sale_refund_sequence_prefix"
161                                     class="oe_inline" 
162                                     help='If you put "%%(year)s" in the prefix, it will be replaced by the current year.'/>
163                                 <field name="sale_refund_sequence_next"
164                                     class="oe_inline"
165                                     attrs="{'readonly': [('sale_refund_journal_id','=',False)]}"/>
166                             </div>
167                             <div>
168                                 <field name="module_account_voucher" class="oe_inline"/>
169                                 <label for="module_account_voucher"/>
170                             </div>
171                             <div>
172                                 <field name="module_account_followup" class="oe_inline"/>
173                                 <label for="module_account_followup"/>
174                             </div>
175                             <div>
176                                 <field name="group_proforma_invoices" class="oe_inline"/>
177                                 <label for="group_proforma_invoices"/>
178                             </div>
179                         </div>
180                         <label for="id" string="Supplier Settings"/>
181                         <div name="other_cofing">
182                             <div>
183                                 <label for="purchase_sequence_next"/>
184                                 <field name="purchase_sequence_prefix"
185                                     class="oe_inline" 
186                                     help='If you put "%%(year)s" in the prefix, it will be replaced by the current year.'/>
187                                 <field name="purchase_sequence_next"
188                                     class="oe_inline"
189                                     attrs="{'readonly': [('purchase_journal_id','=',False)]}"/>
190                             </div>
191                             <div>
192                                 <label for="purchase_refund_sequence_next"/>
193                                 <field name="purchase_refund_sequence_prefix"
194                                     class="oe_inline" 
195                                     help='If you put "%%(year)s" in the prefix, it will be replaced by the current year.'/>
196                                 <field name="purchase_refund_sequence_next"
197                                     class="oe_inline"
198                                     attrs="{'readonly': [('purchase_refund_journal_id','=',False)]}"/>
199                             </div>
200                             <div>
201                                 <field name="module_account_payment" class="oe_inline"/>
202                                 <label for="module_account_payment"/>
203                             </div>
204                         </div>
205                     </group>
206                     <separator string="Electronic Payments"/>
207                     <group>
208                         <label for="id" string="Payment Settings"/>
209                         <div>
210                             <div>
211                                 <label for="paypal_account"/>
212                                 <field name="paypal_account" placeholder="sales@openerp.com" class="oe_inline"/>
213                             </div>
214                         </div>
215                     </group>
216                     <separator string="Bank &amp; Cash"/>
217                     <group>
218                         <label for="id" string="Configuration"/>
219                         <div>
220                             <div>
221                                 <label string="Configure Bank Accounts"/>
222                                 <button name="%(action_bank_tree)d"
223                                     string="Configure"
224                                     icon="gtk-go-forward"
225                                     type="action"
226                                     class="oe_inline oe_link"/>
227                             </div>
228                             <div>
229                                 <label for="company_footer"/>
230                                 <field name="company_footer" class="oe_inline"/>
231                             </div>
232                             <div>
233                                 <field name="module_account_check_writing" class="oe_inline"/>
234                                 <label for="module_account_check_writing"/>
235                             </div>
236                         </div>
237                     </group>
238                     <separator name="analytic_account" string="Analytic Accounting" invisible="1"/>
239                     <group name="analytic_account" invisible="1">
240                         <label for="id" string="Settings"/>
241                         <div name="analytic_account"/>
242                     </group>
243                     <field name="sale_journal_id" invisible="1"/>
244                     <field name="sale_refund_journal_id" invisible="1"/>
245                     <field name="purchase_journal_id" invisible="1"/>
246                     <field name="purchase_refund_journal_id" invisible="1"/>
247                 </form>
248             </field>
249         </record>
250
251         <record id="action_account_config" model="ir.actions.act_window">
252             <field name="name">Configure Accounting</field>
253             <field name="type">ir.actions.act_window</field>
254             <field name="res_model">account.config.settings</field>
255             <field name="view_mode">form</field>
256             <field name="target">inline</field>
257         </record>
258
259         <menuitem id="menu_account_config" name="Accounting" parent="base.menu_config"
260             sequence="14" action="action_account_config"/>
261
262     </data>
263 </openerp>