[IMP] crm, hr_recruitment, project_issue: removed message put in description in messa...
[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="arch" type="xml">
8                 <form string="Configure Moodle" version="7.0">
9                     <group>
10                      <separator string="Server" colspan="4"/>
11                      <field name="server_moodle"/>
12                      <newline/>
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"/>
16                      <newline/>
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"/>
21                     </group>
22                     <footer>
23                         <button type="object" name="configure_moodle"
24                             string="Apply" class="oe_highlight"  />
25                             or
26                             <button string="Cancel" class="oe_link" special="cancel" />
27                     </footer>
28                 </form>
29             </field>
30         </record>
31
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>
39         </record>
40
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>
45         </record>
46
47         <menuitem name="Moodle Configuration" parent="base.menu_marketing_config_root" id="wizard_moodle" action="configure_moodle"/>
48
49     </data>
50 </openerp>