2012-01-31 10:34:39 +00:00
<?xml version="1.0" encoding="UTF-8"?>
<openerp >
<data >
<record model= "ir.ui.view" id= "create_moodle_config_view" >
<field name= "name" > moodle.config.wizard.form</field>
2012-02-27 15:17:35 +00:00
<field name= "model" > event.moodle.config.wiz</field>
2012-01-31 10:34:39 +00:00
<field name= "type" > form</field>
<field name= "arch" type= "xml" >
<form string= "Configure Moodle" >
<group >
2012-02-27 15:17:35 +00:00
<separator string= "server" colspan= "4" />
<field name= "server_moodle" />
<newline />
<separator string= "Connexion with a token" colspan= "4" />
<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" />
<field name= "moodle_token" />
<newline />
<separator string= "Connexion with password and username" colspan= "4" />
<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" />
<field name= "moodle_username" />
<field name= "moodle_password" />
2012-01-31 10:34:39 +00:00
</group>
<newline />
<button type= "special" special= "cancel"
string="Cancel" icon="gtk-cancel"/>
<button type= "object" name= "configure_moodle"
2012-02-03 08:59:48 +00:00
string="Configure Moodle" icon="gtk-ok"/>
2012-01-31 10:34:39 +00:00
</form>
</field>
</record>
<record model= "ir.actions.act_window" id= "configure_moodle" >
<field name= "name" > Configure Moodle</field>
2012-02-27 15:17:35 +00:00
<field name= "res_model" > event.moodle.config.wiz</field>
2012-01-31 10:34:39 +00:00
<field name= "view_id" ref= "create_moodle_config_view" />
<field name= "view_type" > form</field>
<field name= "view_mode" > form</field>
<field name= "target" > new</field>
</record>
2012-02-02 15:12:53 +00:00
2012-01-31 10:34:39 +00:00
<record id= "marketing_cat" model= "ir.actions.todo.category" >
<field name= "name" > Marketing</field>
</record>
<!-- register configuration wizard -->
<record id= "config_wizard_config_moodle" model= "ir.actions.todo" >
<field name= "action_id" ref= "configure_moodle" />
<field name= "category_id" ref= "marketing_cat" />
2012-02-20 15:21:01 +00:00
<field name= "type" > automatic</field>
<field name= "name" > Configuration of moodle</field>
2012-01-31 10:34:39 +00:00
</record>
2012-02-02 15:12:53 +00:00
2012-02-20 15:21:01 +00:00
<menuitem name= "Moodle Configuration" parent= "base.menu_marketing_config_root" id= "wizard_moodle" action= "configure_moodle" />
2012-02-02 15:12:53 +00:00
2012-01-31 10:34:39 +00:00
</data>
</openerp>