[MERGE] Merge with main branch
[odoo/odoo.git] / addons / event_moodle / wizard_moodle.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <openerp>
3     <data>
4         <record model="ir.ui.view" id="create_moodle_config_view">
5             <field name="name">moodle.config.wizard.form</field>
6             <field name="model">event.moodle.config.wiz</field>
7             <field name="type">form</field>
8             <field name="arch" type="xml">
9                 <form string="Configure Moodle" version="7.0">
10                     <header>
11                         <button type="object" name="configure_moodle"
12                             string="Configure Moodle" class="oe_highlight"  />
13                             or
14                             <button string="Cancel" class="oe_link" special="cancel" />
15                     </header>
16                     <group>
17                      <separator string="Server" colspan="4"/>
18                      <field name="server_moodle"/>
19                      <newline/>
20                      <separator string="Connexion with a Token" colspan="4"/>
21                      <label string="The easiest way to connect OpenERP with a moodle server is to create a 'token' in Moodle. It will be used to authenticate OpenERP as a trustable application." colspan="4"/>
22                      <field name="moodle_token"/>
23                      <newline/>
24                      <separator string="Connexion with Password and Username" colspan="4"/>
25                      <label string="Another approach is to create a user for OpenERP in Moodle. If you do so, make sure that this user has enough access rights" colspan="4"/>
26                      <field name="moodle_username"/>
27                      <field name="moodle_password"/>
28                     </group>
29                 </form>
30             </field>
31         </record>
32
33         <record model="ir.actions.act_window" id="configure_moodle">
34             <field name="name">Configure Moodle</field>
35             <field name="res_model">event.moodle.config.wiz</field>
36             <field name="view_id" ref="create_moodle_config_view"/>
37             <field name="view_type">form</field>
38             <field name="view_mode">form</field>
39             <field name="target">new</field>
40         </record>
41
42         <record id="marketing_cat" model="ir.actions.todo.category">
43             <field name="name">Marketing</field>
44         </record>
45         <!-- register configuration wizard -->
46         <record id="config_wizard_config_moodle" model="ir.actions.todo">
47             <field name="action_id" ref="configure_moodle"/>
48             <field name="category_id" ref="marketing_cat" />
49             <field name="type">automatic</field>
50             <field name="name">Configuration of moodle</field>
51         </record>
52
53         <menuitem name="Moodle Configuration" parent="base.menu_marketing_config_root" id="wizard_moodle" action="configure_moodle"/>
54
55     </data>
56 </openerp>