[IMP]: Improvement in configuration wizard: "Modules" => "Applications"
[odoo/odoo.git] / addons / account / account_installer.xml
1 <openerp>
2     <data>
3         <record id="view_account_configuration_installer" model="ir.ui.view">
4             <field name="name">account.installer.form</field>
5             <field name="model">account.installer</field>
6             <field name="type">form</field>
7             <field name="inherit_id" ref="base.res_config_installer"/>
8             <field name="arch" type="xml">
9             <data>
10                 <form position="attributes">
11                     <attribute name="string">Accounting Application Configuration</attribute>
12                 </form>
13                 <separator string="title" position="attributes">
14                     <attribute name="string">Configure Your Accounting System</attribute>
15                 </separator>
16                 <xpath expr="//label[@string='description']" position="attributes">
17                     <attribute name="string">Configure your accounting system. By default, Chart of Account is matching to your country. If there are not chart of account certified for your county, you can install the generic chart of account.</attribute>
18                 </xpath>
19                 <xpath expr="//button[@string='Install Modules']" position="attributes">
20                     <attribute name="string">Configure</attribute>
21                 </xpath>
22                 <xpath expr='//separator[@string="vsep"]' position='attributes'>
23                     <attribute name='rowspan'>23</attribute>
24                     <attribute name='string'></attribute>
25                 </xpath>
26                 <group colspan="8">
27                     <group colspan="4" height="450" width="600">
28                         <field name="charts"/>
29                             <group colspan="4">
30                                 <separator col="4" colspan="4" string="Configure Fiscal Year"/>
31                                 <field name="company_id" colspan="4" widget="selection" groups="base.group_multi_company"/>
32                                 <field name="date_start" on_change="on_change_start_date(date_start)"/>
33                                 <field name="date_stop"/>
34                                 <field name="period" colspan="4"/>
35                             </group>
36                             <group colspan="4" attrs="{'invisible':[('charts','!=','configurable')]}">
37                                 <separator col="4" colspan="4" string="Bank and Cost Account"/>
38                                 <field colspan="4" mode="tree" height="200" name="bank_accounts_id" nolabel="1" widget="one2many_list">
39                                     <form string="">
40                                         <field name="acc_name"/>
41                                         <field name="account_type"/>
42                                         <field name="currency_id" widget="selection"/>
43                                     </form>
44                                     <tree editable="bottom" string="">
45                                         <field name="acc_name"/>
46                                         <field name="account_type"/>
47                                         <field name="currency_id" widget="selection"/>
48                                     </tree>
49                                 </field>
50                             </group>
51                             <group colspan="4" attrs="{'invisible':[('charts','!=','configurable')]}">
52                                 <field name="sale_tax" colspan="2" on_change="on_change_tax(sale_tax)"/>
53                                 <field name="purchase_tax" colspan="2" />
54                             </group>
55                         </group>
56                     </group>
57                 </data>
58             </field>
59         </record>
60
61         <record id="view_account_modules_installer" model="ir.ui.view">
62             <field name="name">account.installer.modules.form</field>
63             <field name="model">account.installer.modules</field>
64             <field name="type">form</field>
65             <field name="inherit_id" ref="base.res_config_installer"/>
66             <field name="arch" type="xml">
67                 <data>
68                     <form position="attributes">
69                         <attribute name="string">Accounting Application Configuration</attribute>
70                     </form>
71                     <separator string="title" position="attributes">
72                         <attribute name="string">Extra Accounting Applications</attribute>
73                     </separator>
74                     <xpath expr="//label[@string='description']" position="attributes">
75                         <attribute name="string">From this screen, you can install extra accounting applications in your accounting system. Select the applications to directly install them. If you do not think you need any of these right now, you can easily install them later.</attribute>
76                     </xpath>
77                     <xpath expr='//separator[@string="vsep"]' position='attributes'>
78                         <attribute name='string'></attribute>
79                     </xpath>
80                     <group colspan="8">
81                         <field name="account_voucher"/>
82                         <field name="account_followup"/>
83                         <field name="account_payment"/>
84                         <field name="account_analytic_plans"/>
85                         <field name="account_anglo_saxon"/>
86 <!--                    <field name="account_voucher_payment"/>-->
87                     </group>
88                 </data>
89             </field>
90         </record>
91
92         <record id="action_account_configuration_installer" model="ir.actions.act_window">
93             <field name="name">Accounting Chart Configuration</field>
94             <field name="type">ir.actions.act_window</field>
95             <field name="res_model">account.installer</field>
96             <field name="view_id" ref="view_account_configuration_installer"/>
97             <field name="view_type">form</field>
98             <field name="view_mode">form</field>
99             <field name="target">new</field>
100         </record>
101
102         <record id="action_account_installer" model="ir.actions.act_window">
103             <field name="name">Accounting Applications Installation</field>
104             <field name="type">ir.actions.act_window</field>
105             <field name="res_model">account.installer.modules</field>
106             <field name="view_id" ref="view_account_modules_installer"/>
107             <field name="view_type">form</field>
108             <field name="view_mode">form</field>
109             <field name="target">new</field>
110         </record>
111
112         <record id="account_configuration_installer_todo" model="ir.actions.todo">
113             <field name="action_id" ref="action_account_configuration_installer"/>
114             <field name="sequence">3</field>
115             <field name="restart">onskip</field>
116         </record>
117
118         <record id="account_installer_todo" model="ir.actions.todo">
119             <field name="action_id" ref="action_account_installer"/>
120             <field name="sequence">5</field>
121             <field name="restart">always</field>
122             <field eval="[(6,0,[ref('base.group_extended')])]" name="groups_id"/>
123         </record>
124
125     </data>
126 </openerp>