[Merge] Merge with main addons.
[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 <<<<<<< TREE
32                         <field name="company_id" string="Select Company" widget="selection"
33                             on_change="onchange_company_id(company_id)"
34                             attrs="{'invisible': [('has_default_company', '=', True)]}"/>
35                         <field name="expects_chart_of_accounts"/>
36                     </group>
37
38                     <group string="Select a Chart of Accounts to Install"
39                         attrs="{'invisible': ['|', ('expects_chart_of_accounts','=',False), ('has_chart_of_accounts','=',True)]}">
40                         <group>
41                             <field name="chart_template_id" widget="selection" domain="[('visible','=', True)]"
42                                 on_change="onchange_chart_template_id(chart_template_id)"/>
43                             <field name="code_digits" groups="account.group_account_user"/>
44                             <field name="sale_tax" attrs="{'invisible': ['|', ('chart_template_id','=',False), ('complete_tax_set','=',False)]}"
45                                 domain="[('chart_template_id', '=', chart_template_id),('parent_id','=',False),('type_tax_use','in',('sale','all'))]"/>
46                             <field name="purchase_tax" attrs="{'invisible': ['|', ('chart_template_id','=',False), ('complete_tax_set','=',False)]}"
47                                 domain="[('chart_template_id', '=', chart_template_id),('parent_id','=',False),('type_tax_use','in',('purchase', 'all'))]"/>
48                             <field name="sale_tax_rate" attrs="{'invisible': ['|', ('chart_template_id','=',False), ('complete_tax_set','=',True)]}" on_change="onchange_tax_rate(sale_tax_rate)"/>
49                             <field name="purchase_tax_rate" attrs="{'invisible': ['|', ('chart_template_id','=',False), ('complete_tax_set','=',True)]}"/>
50                         </group>
51                         <button string="Install More Chart Templates" icon="gtk-go-forward"
52                             name="%(open_account_charts_modules)d" type="action"/>
53                     </group>
54
55                     <group string="No Fiscal Year Defined for This Company"
56                         attrs="{'invisible': ['|', ('expects_chart_of_accounts','=',False), ('has_fiscal_year','=',True)]}">
57                         <label for="date_start" string="Date Range"/>
58                         <div>
59                             <field name="date_start" on_change="onchange_start_date(date_start)" class="oe_inline"/> -
60                             <field name="date_stop" class="oe_inline"/>
61                         </div>
62                         <field name="period"/>
63                     </group>
64
65                     <group>
66                         <group name="account_config">
67                             <separator string="Accounting Configuration" colspan="2"/>
68                             <field name="default_sale_tax" domain="[('type_tax_use','=','sale'), ('company_id','=',company_id)]"
69                                 attrs="{'invisible': [('has_chart_of_accounts','=',False)]}"/>
70                             <field name="module_account_accountant"/>
71                             <field name="currency_id"/>
72                             <field name="decimal_precision"/>
73                             <field name="default_purchase_tax" domain="[('type_tax_use','=','purchase'), ('company_id','=',company_id)]"
74                                 attrs="{'invisible': [('has_chart_of_accounts','=',False)]}"/>
75                             <field name="tax_calculation_rounding_method"/>
76                             <field name="module_account_asset"/>
77                             <field name="module_account_budget"/>
78                             <separator string="Customer Invoices" colspan="2"/>
79                             <label for="sale_sequence_next"/>
80                             <group>
81                                 <field name="sale_sequence_prefix" class="oe_inline" nolabel="1"
82                                     help='If you put "%%(year)s" in the prefix, it will be replaced by the current year.'/>
83                                 <field name="sale_sequence_next" class="oe_inline" nolabel="1"  attrs="{'readonly': [('sale_journal_id','=',False)]}"/>
84                             </group>
85                             <label for="sale_refund_sequence_next"/>
86                             <group>
87                                 <field name="sale_refund_sequence_prefix" class="oe_inline" nolabel="1" 
88                                     help='If you put "%%(year)s" in the prefix, it will be replaced by the current year.'/>
89                                 <field name="sale_refund_sequence_next" nolabel="1" class="oe_inline" attrs="{'readonly': [('sale_refund_journal_id','=',False)]}"/>
90                             </group>
91                             <field name="module_account_voucher"/>
92                             <field name="module_account_followup"/>
93                             <field name="group_proforma_invoices"/>
94                             <separator name="analytic_accounting" invisible="1" string="Analytic Accounting"/>
95                         </group>
96                         <group name="other_cofing">
97                             <separator string="Supplier Invoices" colspan="2"/>
98                              <label for="purchase_sequence_next"/>
99                             <group>
100                                 <field name="purchase_sequence_prefix" class="oe_inline" nolabel="1"
101                                     help='If you put "%%(year)s" in the prefix, it will be replaced by the current year.'/>
102                                 <field name="purchase_sequence_next" nolabel="1" class="oe_inline" attrs="{'readonly': [('purchase_journal_id','=',False)]}"/>
103                             </group>
104                             <label for="purchase_refund_sequence_next"/>
105                             <group>
106                                 <field name="purchase_refund_sequence_prefix" class="oe_inline" nolabel="1" 
107                                     help='If you put "%%(year)s" in the prefix, it will be replaced by the current year.'/>
108                                 <field name="purchase_refund_sequence_next" class="oe_inline"
109                                   attrs="{'readonly': [('purchase_refund_journal_id','=',False)]}" nolabel="1"/>
110                             </group>
111                             <field name="module_account_payment"/>
112                             <separator string="Electronic Payments" colspan="2"/>
113                             <field name="paypal_account" placeholder="e.g. sales@openerp.com"/>
114                             <separator string="Bank &amp; Cash" colspan="2"/>
115                             <label for="id" string="Configure Bank Accounts"/>
116                             <button name="%(action_bank_tree)d" string="Configure Bank Accounts" icon="gtk-go-forward" type="action"/>
117                             <field name="company_footer"/>
118                             <field name="module_account_check_writing"/>
119                         </group>
120 =======
121                         <label for="id" string="Chart of Accounts"/>
122                         <div>
123                             <div attrs="{'invisible': [('has_default_company', '=', True)]}">
124                                 <label for="company_id" string="Select Company"/>
125                                 <field name="company_id"
126                                     widget="selection"
127                                     on_change="onchange_company_id(company_id)"
128                                     class="oe_inline"/>
129                             </div>
130                             <div>
131                                 <field name="expects_chart_of_accounts" class="oe_inline"/>
132                                 <label for="expects_chart_of_accounts"/>
133                             </div>
134                         </div>
135                     </group>
136                     <separator string="Chart of Account and Fiscal Year" attrs="{'invisible': ['|', ('expects_chart_of_accounts','=',False), ('has_chart_of_accounts','=',True)]}"/>
137                     <group attrs="{'invisible': ['|', ('expects_chart_of_accounts','=',False), ('has_chart_of_accounts','=',True)]}">
138                         <label for="id" string="Chart of Account"/>
139                         <div>
140                             <div>
141                                 <label for="chart_template_id"/>
142                                 <field name="chart_template_id"
143                                     widget="selection"
144                                     domain="[('visible','=', True)]"
145                                     on_change="onchange_chart_template_id(chart_template_id)"
146                                     class="oe_inline"/>
147                                 <button string="Install more chart templates"
148                                     icon="gtk-go-forward"
149                                     name="%(open_account_charts_modules)d"
150                                     type="action"
151                                     class="oe_link"/>
152                             </div>
153                             <div groups="account.group_account_user">
154                                 <label for="code_digits"/>
155                                 <field name="code_digits" class="oe_inline"/>
156                             </div>
157                             <div attrs="{'invisible': ['|', ('chart_template_id','=',False), ('complete_tax_set','=',False)]}">
158                                 <label for="sale_tax"/>
159                                 <field name="sale_tax"
160                                     domain="[('chart_template_id', '=', chart_template_id),('parent_id','=',False),('type_tax_use','in',('sale','all'))]"
161                                     class="oe_inline"/>
162                             </div>
163                             <div attrs="{'invisible': ['|', ('chart_template_id','=',False), ('complete_tax_set','=',False)]}">
164                                 <label for="purchase_tax"/>
165                                 <field name="purchase_tax"
166                                     domain="[('chart_template_id', '=', chart_template_id),('parent_id','=',False),('type_tax_use','in',('purchase', 'all'))]"
167                                     class="oe_inline"/>
168                             </div>
169                             <div attrs="{'invisible': ['|', ('chart_template_id','=',False), ('complete_tax_set','=',True)]}">
170                                 <label for="sale_tax_rate"/>
171                                 <field name="sale_tax_rate" on_change="onchange_tax_rate(sale_tax_rate)"/>
172                             </div>
173                             <div attrs="{'invisible': ['|', ('chart_template_id','=',False), ('complete_tax_set','=',True)]}">
174                                 <label for="purchase_tax_rate"/>
175                                 <field name="purchase_tax_rate" />
176                             </div>
177                         </div>
178                     </group>
179                     <separator string="No Fiscal Year Defined for This Company" attrs="{'invisible': ['|', ('expects_chart_of_accounts','=',False), ('has_fiscal_year','=',True)]}"/>
180                     <group attrs="{'invisible': ['|', ('expects_chart_of_accounts','=',False), ('has_fiscal_year','=',True)]}">
181                         <label for="id" string="Fiscal Year"/>
182                         <div>
183                             <div>
184                                 <label for="date_start" string="Date Range"/>
185                                 <field name="date_start"
186                                     on_change="onchange_start_date(date_start)"
187                                     class="oe_inline"/> -
188                                 <field name="date_stop" class="oe_inline"/>
189                             </div>
190                             <div>
191                                 <label for="period"/>
192                                 <field name="period" class="oe_inline"/>
193                             </div>
194                         </div>
195                     </group>
196                     <separator string="eInvoicing &amp; Payments"/>
197                     <group>
198                         <label for="id" string="Customer"/>
199                         <div>
200                             <div attrs="{'invisible': [('has_chart_of_accounts','=',False)]}">
201                                 <label for="default_sale_tax"/>
202                                 <field name="default_sale_tax"
203                                     domain="[('type_tax_use','=','sale'), ('company_id','=',company_id)]"
204                                     class="oe_inline"/>
205                             </div>
206                             <div>
207                                 <label for="sale_sequence_next"/>
208                                 <field name="sale_sequence_prefix"
209                                     class="oe_inline"
210                                     help='If you put "%%(year)s" in the prefix, it will be replaced by the current year.'/>
211                                 <field name="sale_sequence_next"
212                                     class="oe_inline"
213                                     attrs="{'readonly': [('sale_journal_id','=',False)]}"/>
214                             </div>
215                             <div>
216                                 <label for="sale_refund_sequence_next"/>
217                                 <field name="sale_refund_sequence_prefix"
218                                     class="oe_inline"
219                                     help='If you put "%%(year)s" in the prefix, it will be replaced by the current year.'/>
220                                 <field name="sale_refund_sequence_next"
221                                     class="oe_inline"
222                                     attrs="{'readonly': [('sale_refund_journal_id','=',False)]}"/>
223                             </div>
224                             <div>
225                                 <field name="group_proforma_invoices" class="oe_inline"/>
226                                 <label for="group_proforma_invoices"/>
227                             </div>
228                             <div>
229                                 <field name="module_account_voucher" class="oe_inline"/>
230                                 <label for="module_account_voucher"/>
231                             </div>
232                             <div>
233                                 <field name="module_account_followup" class="oe_inline"/>
234                                 <label for="module_account_followup"/>
235                             </div>
236                         </div>
237                     </group>
238                     <group>
239                         <label for="id" string="Supplier"/>
240                         <div name="other_cofing">
241                             <div attrs="{'invisible': [('has_chart_of_accounts','=',False)]}">
242                                 <label for="default_purchase_tax"/>
243                                 <field name="default_purchase_tax"
244                                     domain="[('type_tax_use','=','purchase'), ('company_id','=',company_id)]"
245                                     class="oe_inline"/>
246                             </div>
247                             <div>
248                                 <label for="purchase_sequence_next"/>
249                                 <field name="purchase_sequence_prefix"
250                                     class="oe_inline"
251                                     help='If you put "%%(year)s" in the prefix, it will be replaced by the current year.'/>
252                                 <field name="purchase_sequence_next"
253                                     class="oe_inline"
254                                     attrs="{'readonly': [('purchase_journal_id','=',False)]}"/>
255                             </div>
256                             <div>
257                                 <label for="purchase_refund_sequence_next"/>
258                                 <field name="purchase_refund_sequence_prefix"
259                                     class="oe_inline"
260                                     help='If you put "%%(year)s" in the prefix, it will be replaced by the current year.'/>
261                                 <field name="purchase_refund_sequence_next"
262                                     class="oe_inline"
263                                     attrs="{'readonly': [('purchase_refund_journal_id','=',False)]}"/>
264                             </div>
265                             <div>
266                                 <field name="module_account_payment" class="oe_inline"/>
267                                 <label for="module_account_payment"/>
268                             </div>
269                             <div>
270                                 <field name="module_account_check_writing" class="oe_inline"/>
271                                 <label for="module_account_check_writing"/>
272                             </div>
273                         </div>
274                     </group>
275                     <separator string="Bank &amp; Cash"/>
276                     <group>
277                         <label for="id" string="Configuration"/>
278                         <div>
279                             <div>
280                                 <label string="Configure your bank accounts"/>
281                                 <button name="%(action_bank_tree)d"
282                                     string="Configure"
283                                     icon="gtk-go-forward"
284                                     type="action"
285                                     class="oe_inline oe_link"/>
286                             </div>
287                             <p>
288                                 <label for="company_footer"/>: <field name="company_footer" class="oe_inline"/>
289                             </p>
290                             <div>
291                                 <label for="paypal_account"/>
292                                 <field name="paypal_account" placeholder="sales@openerp.com" class="oe_inline"/>
293                             </div>
294                         </div>
295                     </group>
296                     <separator string="Accounting &amp; Finance"/>
297                     <group>
298                         <label for="id" string="Options"/>
299                         <div name="account_config">
300                             <div>
301                                 <label for="currency_id"/>
302                                 <field name="currency_id" class="oe_inline"/>
303                             </div>
304                             <div>
305                                 <label for="decimal_precision"/>
306                                 <field name="decimal_precision" class="oe_inline"/>
307                             </div>
308                             <div>
309                                 <label for="tax_calculation_rounding_method"/>
310                                 <field name="tax_calculation_rounding_method" class="oe_inline"/>
311                             </div>
312                         </div>
313                         <label for="id" string="Features"/>
314                         <div>
315                             <div>
316                                 <field name="module_account_accountant" class="oe_inline"/>
317                                 <label for="module_account_accountant"/>
318                             </div>
319                             <div>
320                                 <field name="module_account_asset" class="oe_inline"/>
321                                 <label for="module_account_asset"/>
322                             </div>
323                             <div>
324                                 <field name="module_account_budget" class="oe_inline"/>
325                                 <label for="module_account_budget"/>
326                             </div>
327                         </div>
328                     </group>
329                     <separator name="analytic_account" string="Analytic Accounting" invisible="1"/>
330                     <group name="analytic_account_sale" invisible="1">
331                         <label for="id" string="Sale"/>
332                         <div/>
333                     </group>
334                     <group name="analytic_account_purchase" invisible="1">
335                         <label for="id" string="Purchase"/>
336                         <div/>
337 >>>>>>> MERGE-SOURCE
338                     </group>
339                     <field name="sale_journal_id" invisible="1"/>
340                     <field name="sale_refund_journal_id" invisible="1"/>
341                     <field name="purchase_journal_id" invisible="1"/>
342                     <field name="purchase_refund_journal_id" invisible="1"/>
343                 </form>
344             </field>
345         </record>
346
347         <record id="action_account_config" model="ir.actions.act_window">
348             <field name="name">Configure Accounting</field>
349             <field name="type">ir.actions.act_window</field>
350             <field name="res_model">account.config.settings</field>
351             <field name="view_mode">form</field>
352             <field name="target">inline</field>
353         </record>
354
355         <menuitem id="menu_account_config" name="Accounting" parent="base.menu_config"
356             sequence="14" action="action_account_config"/>
357
358     </data>
359 </openerp>