[FIX] analytic_contract_hr_expense: fixed amounts in billing table + view inheritancy
[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">
10                     <group>
11                      <separator string="Server" colspan="4"/>
12                      <field name="server_moodle"/>
13                      <newline/>
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"/>
17                      <newline/>
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"/>
22                     </group>
23                     <newline/>
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"/>
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         <record id="marketing_cat" model="ir.actions.todo.category">
42             <field name="name">Marketing</field>
43         </record>
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>
50         </record>
51
52         <menuitem name="Moodle Configuration" parent="base.menu_marketing_config_root" id="wizard_moodle" action="configure_moodle"/>
53
54     </data>
55 </openerp>