[FIX] Do not focus unfocusable fields
[odoo/odoo.git] / addons / base_setup / res_config_view.xml
1 <openerp>
2     <data>
3
4         <record id="view_general_configuration" model="ir.ui.view">
5             <field name="name">General Settings</field>
6             <field name="model">base.config.settings</field>
7             <field name="type">form</field>
8             <field name="arch" type="xml">
9                 <form string="General Settings" version="7.0">
10                     <header>
11                         <button string="Apply" type="object" name="execute" class="oe_highlight"/>
12                         or
13                         <button string="Cancel" type="object" name="cancel" class="oe_link"/>
14                     </header>
15                     <group>
16                         <group string="Company Settings">
17                             <field name="module_multi_company"/>
18                             <separator string="External Accesses" colspan="2"/>
19                             <field name="module_share"/>
20                             <field name="module_portal"/>
21                         </group>
22                         <group>
23                             <div>
24                                 You will also find several configuration options on your company data:
25                                 address for the header and footer, overdue payments texts, etc.
26                             </div>
27                             <button type="object" name="open_company" string="Configure Your Company Data" icon="gtk-execute"/>
28                             <separator string="Others" colspan="2"/>
29                             <label for="id" string="Outgoing Mail Servers"/>
30                             <button type="action" name="%(base.action_ir_mail_server_list)d"
31                             string="Configure" icon="gtk-execute"/>
32                         </group>
33                         
34                     </group>
35                 </form>
36             </field>
37         </record>
38
39         <record id="action_general_configuration" model="ir.actions.act_window">
40             <field name="name">General Settings</field>
41             <field name="res_model">base.config.settings</field>
42             <field name="view_mode">form</field>
43             <field name="target">inline</field>
44         </record>
45         <menuitem id="menu_general_configuration" parent="base.menu_config"
46             sequence="100" action="action_general_configuration"/>
47
48         <!-- Sale config wizard -->
49         <record id="view_sale_config_settings" model="ir.ui.view">
50             <field name="name">sale settings</field>
51             <field name="model">sale.config.settings</field>
52             <field name="type">form</field>
53             <field name="arch" type="xml">
54                 <form string="Configure Sales" version="7.0">
55                     <header>
56                         <button string="Apply" type="object" name="execute" class="oe_highlight"/>
57                         or
58                         <button string="Cancel" type="object" name="cancel" class="oe_link"/>
59                     </header>
60                         <group>
61                             <group name="config_sale">
62                                 <field name="module_crm" invisible="1"/>
63                                 <separator string="Emails" colspan="2" attrs="{'invisible': [('module_crm','=',False)]}"/>
64                                 <field name="module_plugin_thunderbird" attrs="{'invisible': [('module_crm','=',False)]}"/>
65                                 <field name="module_plugin_outlook" attrs="{'invisible': [('module_crm','=',False)]}"/>
66                             </group>
67                             <group name="config_other">
68                             </group>
69                         </group>
70                 </form>
71             </field>
72         </record>
73
74         <record id="action_sale_config" model="ir.actions.act_window">
75             <field name="name">Configure Sales</field>
76             <field name="type">ir.actions.act_window</field>
77             <field name="res_model">sale.config.settings</field>
78             <field name="view_id" ref="view_sale_config_settings"/>
79             <field name="view_mode">form</field>
80             <field name="target">inline</field>
81         </record>
82
83     </data>
84 </openerp>