1 <?xml version="1.0" encoding="UTF-8"?>
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">
11 <separator string="Server" colspan="4"/>
12 <field name="server_moodle"/>
14 <separator string="Connexion with a Token" colspan="4"/>
15 <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"/>
16 <field name="moodle_token"/>
18 <separator string="Connexion with Password and Username" colspan="4"/>
19 <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"/>
20 <field name="moodle_username"/>
21 <field name="moodle_password"/>
24 <button type="special" special="cancel"
25 string="Cancel" icon="gtk-cancel"/>
26 <button type="object" name="configure_moodle"
27 string="Configure Moodle" icon="gtk-ok"/>
32 <record model="ir.actions.act_window" id="configure_moodle">
33 <field name="name">Configure Moodle</field>
34 <field name="res_model">event.moodle.config.wiz</field>
35 <field name="view_id" ref="create_moodle_config_view"/>
36 <field name="view_type">form</field>
37 <field name="view_mode">form</field>
38 <field name="target">new</field>
41 <record id="marketing_cat" model="ir.actions.todo.category">
42 <field name="name">Marketing</field>
44 <!-- register configuration wizard -->
45 <record id="config_wizard_config_moodle" model="ir.actions.todo">
46 <field name="action_id" ref="configure_moodle"/>
47 <field name="category_id" ref="marketing_cat" />
48 <field name="type">automatic</field>
49 <field name="name">Configuration of moodle</field>
52 <menuitem name="Moodle Configuration" parent="base.menu_marketing_config_root" id="wizard_moodle" action="configure_moodle"/>