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="arch" type="xml">
8 <form string="Configure Moodle" version="7.0">
10 <separator string="Server" colspan="4"/>
11 <field name="server_moodle"/>
13 <separator string="Connection with a Token" colspan="4"/>
14 <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"/>
15 <field name="moodle_token"/>
17 <separator string="Connection with username and password" colspan="4"/>
18 <label string="Another approach is to create a user for OpenERP in Moodle. If you do so, make sure that this user has appropriate access rights." colspan="4"/>
19 <field name="moodle_username"/>
20 <field name="moodle_password" password="True"/>
23 <button type="object" name="configure_moodle"
24 string="Apply" class="oe_highlight" />
26 <button string="Cancel" class="oe_link" special="cancel" />
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 <!-- register configuration wizard -->
42 <record id="base.open_menu" model="ir.actions.todo">
43 <field name="action_id" ref="configure_moodle"/>
44 <field name="state">open</field>
47 <menuitem name="Moodle Configuration" parent="base.menu_marketing_config_root" id="wizard_moodle" action="configure_moodle"/>