[IMP] account: remove unused field in account configuration
[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"/>
21                         <button string="Cancel" special="cancel"/>
22                     </header>
23                     <group col="4">
24                         <field name="has_default_company" invisible="1" />
25                         <field name="has_chart_of_accounts" invisible="1"/>
26                         <field name="company_id" widget="selection" on_change="onchange_company_id(company_id)"
27                             attrs="{'invisible': [('has_default_company', '=', True)]}"/>
28                         <field name="expects_chart_of_accounts"/>
29                     </group>
30
31                     <group string="Select a Chart of Accounts to Install" col="4" attrs="{'invisible': ['|', ('expects_chart_of_accounts','=',False), ('has_chart_of_accounts','=',True)]}">
32                         <field name="chart_template_id" widget="selection" on_change="onchange_chart_template_id(chart_template_id)" domain="[('visible','=', True)]"/>
33                         <button string="Install More Chart Templates" icon="gtk-go-forward"
34                             name="%(open_account_charts_modules)d" type="action"/>
35                         <newline/>
36                         <field name="code_digits" groups="account.group_account_user"/>
37                         <newline/>
38                         <field name="complete_tax_set" invisible="1"/>
39                         <field name="sale_tax" attrs="{'invisible': ['|', ('chart_template_id','=',False), ('complete_tax_set','=',False)]}"
40                             domain="[('chart_template_id', '=', chart_template_id),('parent_id','=',False),('type_tax_use','in',('sale','all'))]"/>
41                         <field name="purchase_tax" attrs="{'invisible': ['|', ('chart_template_id','=',False), ('complete_tax_set','=',False)]}"
42                             domain="[('chart_template_id', '=', chart_template_id),('parent_id','=',False),('type_tax_use','in',('purchase', 'all'))]"/>
43                         <field name="sale_tax_rate" attrs="{'invisible': ['|', ('chart_template_id','=',False), ('complete_tax_set','=',True)]}" on_change="onchange_tax_rate(sale_tax_rate)"/>
44                         <field name="purchase_tax_rate" attrs="{'invisible': ['|', ('chart_template_id','=',False), ('complete_tax_set','=',True)]}"/>
45                     </group>
46
47                     <field name="has_fiscal_year" invisible="1"/>
48                     <group string="No Fiscal Year Defined for this Company" col="4" attrs="{'invisible': ['|', ('expects_chart_of_accounts','=',False), ('has_fiscal_year','=',True)]}">
49                         <field name="date_start" on_change="onchange_start_date(date_start)"/>
50                         <field name="date_stop"/>
51                         <field name="period" colspan="4"/>
52                     </group>
53
54                     <field name="complete_tax_set" invisible="1"/>
55                     <group string="Accounting Configuration">
56                         <group>
57                             <field name="default_sale_tax" domain="[('type_tax_use','=','sale'), ('company_id','=',company_id)]" attrs="{'invisible': [('has_chart_of_accounts','=',False)]}"/>
58                             <field name="module_account_accountant"/>
59                             <field name="module_account_asset"/>
60                         </group>
61                         <group>
62                             <field name="default_purchase_tax" domain="[('type_tax_use','=','purchase'), ('company_id','=',company_id)]" attrs="{'invisible': [('has_chart_of_accounts','=',False)]}"/>
63                             <field name="currency_id"/>
64                             <field name="module_account_budget"/>
65                             <field name="decimal_precision"/>
66                         </group>
67                     </group>
68
69                     <field name="sale_journal_id" invisible="1"/>
70                     <field name="sale_refund_journal_id" invisible="1"/>
71                     <field name="purchase_journal_id" invisible="1"/>
72                     <field name="purchase_refund_journal_id" invisible="1"/>
73                     <group>
74                         <group string="Customer Invoices">
75                             <label string="Invoice Sequence" for="sale_sequence_prefix"/>
76                             <div>
77                                 <field name="sale_sequence_prefix" class="oe_form_inline"/>
78                                 <field name="sale_sequence_next" class="oe_form_inline" attrs="{'readonly': [('sale_journal_id','=',False)]}"/>
79                             </div>
80
81                             <label string="Credit Note Sequence" for="sale_refund_sequence_prefix"/>
82                             <div>
83                                 <field name="sale_refund_sequence_prefix" class="oe_form_inline"/>
84                                 <field name="sale_refund_sequence_next" class="oe_form_inline" attrs="{'readonly': [('sale_refund_journal_id','=',False)]}"/>
85                             </div>
86                             <field name="module_account_invoice_layout"/>
87                             <field name="module_account_voucher"/>
88                             <field name="module_account_followup"/>
89                             <field name="group_proforma_invoices"/>
90                         </group>
91                         <group string="Supplier Invoices">
92                             <label string="Supplier Invoice Sequence" for="purchase_sequence_prefix"/>
93                             <div>
94                                 <field name="purchase_sequence_prefix" class="oe_form_inline"/>
95                                 <field name="purchase_sequence_next" class="oe_form_inline" attrs="{'readonly': [('purchase_journal_id','=',False)]}"/>
96                             </div>
97                             <label string="Supplier Credit Note Sequence" for="purchase_refund_sequence_prefix"/>
98                             <div>
99                                 <field name="purchase_refund_sequence_prefix" class="oe_form_inline"/>
100                                 <field name="purchase_refund_sequence_next" class="oe_form_inline"
101                                   attrs="{'readonly': [('purchase_refund_journal_id','=',False)]}"/>
102                             </div>
103                             <field name="module_account_payment"/>
104                         </group>
105                         <group string="Electronic Payments">
106                             <field name="paypal_account"/>
107                         </group>
108                         <group string="Bank &amp; Cash">
109                             <label string="Configure Bank Accounts :"/>
110                             <button name="%(action_bank_tree)d" string="Configure Bank Accounts" icon="gtk-go-forward" type="action"/>
111                             <field name="company_footer"/>
112                             <field name="module_account_check_writing"/>
113                         </group>
114                         <group name="analytic_accounting" invisible="1" string="Analytic Accounting"/>
115                     </group>
116                 </form>
117             </field>
118         </record>
119
120         <record id="action_account_config" model="ir.actions.act_window">
121             <field name="name">Configure Accounting</field>
122             <field name="type">ir.actions.act_window</field>
123             <field name="res_model">account.config.settings</field>
124             <field name="view_mode">form</field>
125             <field name="target">inline</field>
126         </record>
127
128         <menuitem id="menu_account_config" name="Accounting" parent="base.menu_config"
129             sequence="14" action="action_account_config"/>
130
131     </data>
132 </openerp>