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