[IMP] security groups for HR + 'group by' in extended views in some views (stock...
[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 Chart</attribute>
15                 </separator>
16                 <xpath expr="//label[@string='description']" position="attributes">
17                     <attribute name="string">The default Chart of Accounts is matching your country selection. If no certified Chart of Accounts exists for your specified country, a generic one can be installed and will be selected by default.</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" groups="base.group_extended">
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                                 <field name="sale_tax" on_change="on_change_tax(sale_tax)" attrs="{'required':[('charts','=','configurable')]}"/>
38                                 <field name="purchase_tax" groups="base.group_extended"/>
39                             </group>
40                             <group colspan="4" attrs="{'invisible':[('charts','!=','configurable')]}">
41                                 <separator col="4" colspan="4" string="Bank and Cash Accounts"/>
42                                 <field colspan="4" mode="tree" height="200" name="bank_accounts_id" nolabel="1" widget="one2many_list">
43                                     <form string="">
44                                         <field name="acc_name"/>
45                                         <field name="account_type"/>
46                                         <field name="currency_id" widget="selection" groups="base.group_extended"/>
47                                     </form>
48                                     <tree editable="bottom" string="Your bank and cash accounts">
49                                         <field name="acc_name"/>
50                                         <field name="account_type"/>
51                                         <field name="currency_id" widget="selection" groups="base.group_extended"/>
52                                     </tree>
53                                 </field>
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">Configure Your Accounting Application</attribute>
73
74                     </separator>
75                     <xpath expr="//label[@string='description']" position="attributes">
76                         <attribute name="string">Add extra Accounting functionalities to the ones already installed.</attribute>
77                     </xpath>
78                     <xpath expr="//button[@string='Install Modules']" position="attributes">
79                         <attribute name="string">Configure</attribute>
80                     </xpath>
81                     <xpath expr='//separator[@string="vsep"]' position='attributes'>
82                         <attribute name='string'></attribute>
83                     </xpath>
84                     <group colspan="8">
85                         <field name="account_voucher"/>
86                         <field name="account_followup"/>
87                         <field name="account_payment"/>
88                         <field name="account_analytic_plans"/>
89                         <field name="account_anglo_saxon"/>
90 <!--                    <field name="account_voucher_payment"/>-->
91                     </group>
92                 </data>
93             </field>
94         </record>
95
96         <record id="action_account_configuration_installer" model="ir.actions.act_window">
97             <field name="name">Accounting Chart Configuration</field>
98             <field name="type">ir.actions.act_window</field>
99             <field name="res_model">account.installer</field>
100             <field name="view_id" ref="view_account_configuration_installer"/>
101             <field name="view_type">form</field>
102             <field name="view_mode">form</field>
103             <field name="target">new</field>
104         </record>
105
106         <record id="action_account_installer" model="ir.actions.act_window">
107             <field name="name">Accounting Application Configuration</field>
108             <field name="type">ir.actions.act_window</field>
109             <field name="res_model">account.installer.modules</field>
110             <field name="view_id" ref="view_account_modules_installer"/>
111             <field name="view_type">form</field>
112             <field name="view_mode">form</field>
113             <field name="target">new</field>
114         </record>
115
116         <record id="account_configuration_installer_todo" model="ir.actions.todo">
117             <field name="action_id" ref="action_account_configuration_installer"/>
118             <field name="sequence">3</field>
119             <field name="restart">onskip</field>
120         </record>
121
122         <record id="account_installer_todo" model="ir.actions.todo">
123             <field name="action_id" ref="action_account_installer"/>
124             <field name="sequence">5</field>
125             <field name="restart">always</field>
126             <field eval="[(6,0,[ref('base.group_extended')])]" name="groups_id"/>
127         </record>
128
129     </data>
130 </openerp>